debugger: use mhash for tarantool_debug_getsources
Refactor `tarantool_debug_getsource` implementation to use mhash-based `mh_strnptr_find_str` function for fast lookup in the hash map using given key. Established set of function wrapping this functionality: - `builtin_modcache_init` for creating map; - `builtin_modcache_free` as destructor for map; - `builtin_modcache_put` for adding new pair of (modname, lua code) into this hash map; - `builtin_modcache_find` for fast lookup given short module name. NB! We do not use keys in a form `@builtin/%s.lua` - we use short module names instead. NO_DOC=refactoring NO_CHANGELOG=refactoring NO_TEST=refactoring, older tests should still work
Loading
Please register or sign in to comment