Skip to content

Instantly share code, notes, and snippets.

@SoniEx2
Created February 1, 2015 03:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SoniEx2/00713b3a6314bb15ca52 to your computer and use it in GitHub Desktop.
Save SoniEx2/00713b3a6314bb15ca52 to your computer and use it in GitHub Desktop.
-- JIT It, the thing that makes LuaJIT JIT.
do
-- get the registry table
local registry = debug.getregistry();
-- replace debug.getregistry with a JIT-able (pure-Lua) version.
debug.getregistry = function() return registry end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment