<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40324 >
Madeline Book wrote:
> The patch also implements hash_fast_clear which does
> the same as hash_delete_all_entries but much more
> quickly and efficiently. (It cannot be used unfortunately
> if the keys or values have associated free_funcs.)
Why not just give hash_delete_all_entries a special case after a check
for if there's a free_func? Having a second function that does "almost"
the same thing isn't so good.
Freeciv-dev mailing list