Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2000:
[Freeciv-Dev] patch: cleanup registry hashing (PR#325)
Home

[Freeciv-Dev] patch: cleanup registry hashing (PR#325)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] patch: cleanup registry hashing (PR#325)
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Sat, 25 Mar 2000 19:00:47 -0800 (PST)

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

Attachment: hash_reg.diff.gz
Description: GNU Zip compressed data


[Prev in Thread] Current Thread [Next in Thread]