[Freeciv-Dev] capability patch
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Since there were complains about the speed of the has_capability() &
has_capabilities() functions i looked at the code and noticed
has_capability() called my_strdup() once per call. So i removed those
calls by changing the code. The new functions are > 50% faster depending
on the capstrings you're searching.
---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa
freeciv-cap.patch
Description: Text document
- [Freeciv-Dev] capability patch,
Vasco Alexandre Da Silva Costa <=
|
|