Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Avoid excessive name pollution in test files | Roberto Ierusalimschy | 2022-12-28 | 1 | -2/+4 |
| | | | | | Test files are more polite regarding the use of globals when locals would do, and when globals are necessary deleting them after use. | ||||
* | 'lua_upvalueid' returns NULL on invalid upvalue index | Roberto Ierusalimschy | 2020-10-12 | 1 | -1/+1 |
| | |||||
* | Removed internal cache for closures | Roberto Ierusalimschy | 2018-11-01 | 1 | -7/+6 |
| | | | | | | | | | | | | | | | | | | | 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.) | ||||
* | Added directory to test file names in '$Id:' | Roberto Ierusalimschy | 2018-07-25 | 1 | -1/+1 |
| | | | | | | | From the point of view of 'git', all names are relative to the root directory of the project. So, file names in '$Id:' also should be relative to that directory: the proper name for test file 'all.lua' is 'testes/all.lua'. | ||||
* | Added manual and tests for version 5.4-w2 | Roberto Ierusalimschy | 2018-07-09 | 1 | -0/+271 |