lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> Unfortunately this means that e.g. the object instantiation benchmark
> from the shootout tests (objinst.lua) is 22% slower. [...] Tracing
> reveals that 51w4 does many 2->4 resizes of the hash part and 51w5
> does many 1->2->4 resizes in this particular test.

This is strange. Doesn't that code use contructors to create the tables?
Constructors should create the table with the right size, so there
should be no resizes at all.

-- Roberto