bennyxqg / lua-alchemy

Automatically exported from code.google.com/p/lua-alchemy
0 stars 0 forks source link

Change default allocator #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We may make Lua run faster if we change default allocator. (This is
not for first Lua Alchemy versions of course.)

Lua allocates a lot of small fixed-size chunks for tables.

One allocator that works nice with Lua (per user reports) is dmalloc:

http://g.oswego.edu/dl/html/malloc.html

Need to experiment with that once benchmarks would be ready.

Original issue reported on code.google.com by rstehw...@gmail.com on 20 Dec 2008 at 5:23