[Freeciv-Dev] patch: cleanup registry hashing (PR#325)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
One more hash-related code-cleanup patch.
(Requires hash_more.diff, PR#322).
This changes registry again, to make better and more consistent
use of hashing. Instead of building a static hash table at the
end, the section_file is kept always hashed dynamically, which
allows simpler code for insertions and lookups. Also sections
are hashed as well as entries. There is a small performance
penalty for this extra flexibility, but shouldn't be noticeble
in practice (eg, < 10% for loading typical savegame).
-- David
hash_reg.diff.gz
Description: GNU Zip compressed data
- [Freeciv-Dev] patch: cleanup registry hashing (PR#325),
David Pfitzner <=
|
|