Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [Minor] Microoptimize lua_util.str_endswith | Anton Yuzhaninov | 2022-02-26 | 1 | -1/+32 |
| | | | | | | | | Use find to check string suffix instead of sub (which involves string interning of a returned string). Benchmarks with LuaJIT 2.1.0 shows that an option with find is significantly faster. While here added unit test for this function. | ||||
* | [Minor] Lua_util: Rework and add tests for callback_from_string | Vsevolod Stakhov | 2019-08-23 | 1 | -0/+30 |