Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove use of LocalsOptimizer from try.bat; fix off-by-one in Dispatc…
…hCache.lua (gives 60% reduction in runtime of decrement/compare microbenchmark)
  • Loading branch information
diakopter committed Nov 13, 2011
1 parent ac8f6f4 commit 442d8d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lua/compiler/try.bat
@@ -1,8 +1,8 @@
@nmake /nologo >NUL
@rem nmake /nologo >NUL
@echo dofile('RakudoRuntime.lua');> x.lua
@parrot compile.pir %1 >> x.lua
@luajit LocalsOptimizer.lua x.lua > y.lua
@rem type x.lua > y.lua
@rem luajit LocalsOptimizer.lua x.lua > y.lua
@type x.lua > y.lua
@echo LastMain(); >> y.lua
@echo ---
@luajit y.lua
2 changes: 1 addition & 1 deletion lua/runtime/Runtime/MultiDispatch/DispatchCache.lua
Expand Up @@ -28,7 +28,7 @@ function makeDispatchCache ()
if (Cache ~= nil and Cache.NumEntries ~= 0) then
local Seeking = DispatchCache.PositionalsToTypeCacheIDs(Positionals);

local ci = 0;
local ci = 1;
for ri = 1, Cache.NumEntries do
local Matched = true;
for j = 1, Positionals.Count do
Expand Down

0 comments on commit 442d8d3

Please sign in to comment.