mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 09:09:31 +00:00
LuaJIT compatibility
Spoiler alert: Anselme run ~1.5x slower in LuaJIT than Lua 5.3/5.4. I didn't expected LuaJIT to be able to optimize anything with my super performant and cache friendly AST walker interpreter, but being this much slower is kinda impressive.
This commit is contained in:
parent
82ce53be83
commit
809613ef8b
8 changed files with 27 additions and 6 deletions
|
|
@ -1,6 +1,7 @@
|
|||
local class = require("class")
|
||||
local fmt = require("common").fmt
|
||||
local binser = require("lib.binser")
|
||||
local utf8 = utf8 or require("lua-utf8")
|
||||
|
||||
-- NODES SHOULD BE IMMUTABLE AFTER CREATION IF POSSIBLE!
|
||||
-- i don't think i actually rely on this behavior for anything but it makes me feel better about life in general
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue