lua/testes
Roberto Ierusalimschy e8c779736f Removed internal cache for closures
The mechanism of "caching the last closure created for a prototype to
try to reuse it the next time a closure for that prototype is created"
was removed. There are several reasons:

- It is hard to find a natural example where this cache has a measurable
impact on performance.

- Programmers already perceive closure creation as something slow,
so they tend to avoid it inside hot paths. (Any case where the cache
could reuse a closure can be rewritten predefining the closure in some
variable and using that variable.)

- The implementation was somewhat complex, due to a bad interaction
with the generational collector. (Typically, new closures are new,
while prototypes are old. So, the cache breaks the invariant that
old objects should not point to new ones.)
2018-11-01 13:21:00 -03:00
..
libs Added manual and tests for version 5.4-w2 2018-07-09 12:33:01 -03:00
all.lua Removed extra information from RCS keyword strings in tests 2018-10-22 15:20:07 -03:00
api.lua To-be-closed variables in the C API 2018-10-25 15:30:15 -03:00
attrib.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
big.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
bitwise.lua Removed extra information from RCS keyword strings in tests 2018-10-22 15:20:07 -03:00
bwcoercion.lua Added manual and tests for version 5.4-w2 2018-07-09 12:33:01 -03:00
calls.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
closure.lua Removed internal cache for closures 2018-11-01 13:21:00 -03:00
code.lua Back with optimization for 'if cond then goto' 2018-10-30 15:04:19 -03:00
constructs.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
coroutine.lua Removed extra information from RCS keyword strings in tests 2018-10-22 15:20:07 -03:00
db.lua Complete implementation of to-be-closed variables 2018-10-22 14:55:51 -03:00
errors.lua Better error messages for invalid operands in numeric 'for' 2018-10-30 15:46:56 -03:00
events.lua Removed extra information from RCS keyword strings in tests 2018-10-22 15:20:07 -03:00
files.lua State in generic 'for' acts as a to-be-closed variable 2018-10-31 14:54:45 -03:00
gc.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
gengc.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
goto.lua Back with optimization for 'if cond then goto' 2018-10-30 15:04:19 -03:00
literals.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
locals.lua State in generic 'for' acts as a to-be-closed variable 2018-10-31 14:54:45 -03:00
main.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
math.lua Removed extra information from RCS keyword strings in tests 2018-10-22 15:20:07 -03:00
nextvar.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
pm.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
sort.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
strings.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
tpack.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
utf8.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
vararg.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
verybig.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00