GetFunctionIDBy* speed
Hi
I'm just wondering if there's a reason the functions are internally just stored in a list, and this list is searched linearly when calling GetFunctionIDBy*? This quickly gets very slow if the number of functions increases.
I'm currently caching the lookups, but still due to different reasons have to redo them every once in a while, so I'd really love if it could be stored in a hashmap or something for faster lookups.
/Anders Stenberg
The main reason is laziness from my part. I haven't given it much priority because the id really should be cached between calls.
I will probably change the list to use std::map when I find the time.
I will probably change the list to use std::map when I find the time.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement