luacheck
luacheck copied to clipboard
perf: Optimize `contains_call()` by adding memoization
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.
Hi, could @alerque take a look at this when you get a chance?