the-cold-dark / genesis

The Cold server - This implements a dynamic, object-oriented language on top of an object database, well suited for virtual environments and online servers (like games).
29 stars 7 forks source link

Decompilation performance: dump_hash growth is too slow #12

Closed waywardmonkeys closed 1 year ago

waywardmonkeys commented 1 year ago

The dump hash is just using the same quickhash as other code, and so after 4k entries, it stop resizing via doubling.

With the TEC binary DB containing over 4million objects, this results in a ton of rehashing of the dump map and a significant performance hit.

waywardmonkeys commented 1 year ago

The hit from this is actually pretty small, I think.