luacheck icon indicating copy to clipboard operation
luacheck copied to clipboard

perf: Optimize `contains_call()` by adding memoization

Open tomlau10 opened this issue 1 year ago • 1 comments

This will fix #104 by adding memoization to the function contains_call(). With this optimization, the time required for linting the provided test file using both the latest version and v0.25 of luacheck is nearly identical.

tomlau10 avatar Jan 30 '24 03:01 tomlau10

Hi, could @alerque take a look at this when you get a chance?

tomlau10 avatar Feb 19 '24 06:02 tomlau10