[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 51w5 table resize regressions
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 07 Mar 2005 10:10:41 -0300
> 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