Re: Allocation sinking in git HEAD

  • From: David Given <dg@xxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 03 Jul 2012 23:42:21 +0100

On 03/07/12 13:21, Mike Pall wrote:
[...]
>  140.0  Lua
>   26.9  LuaJIT -O-sink
>    0.20 LuaJIT -O+sink *** 700x faster than Lua ***

Very impressive! Don't suppose you have an equivalent benchmark in C++,
do you?

How does it determine whether the allocation can be sunk or not? How
much work can we do with a new object before the JIT gives up and
allocates it off the heap?

(For example, passing the object to a leaf function vs passing it to a
non-leaf function vs passing it to an FFI function...)

-- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ life←{ ↑1 ⍵∨.^3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵ }
│ --- Conway's Game Of Life, in one line of APL

Other related posts: