Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2001:
[Freeciv-Dev] capability patch
Home

[Freeciv-Dev] capability patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] capability patch
From: Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxx>
Date: Sun, 18 Feb 2001 16:05:41 +0000 (WET)

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

Attachment: freeciv-cap.patch
Description: Text document


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