URL: <http://gna.org/patch/?4934>
Summary: Use macros for uclass_index() and utype_class() Project: Freeciv Submitted by: persia Submitted on: Sat 12 Jul 2014 04:32:21 PM JST Category: general Priority: 5 - Normal Status: Ready For Test Privacy: Public Assigned to: persia Originator Email: Open/Closed: Open Discussion Lock: Any Planned Release: 2.6.0 _______________________________________________________ Details: In testing patch #4933, I noticed nearly 3% of calls seemed to be to uclass_index() or utype_class(). Replacing these with macros seems to remove at least this much runtime from execution entirely. Oddly, in one autogame, I saved 10% "user" time (as measured by time(1)), with the same autogame result, which is too much improvement to be explained by this patch, making me worry I've done something wrong with the macro conversion (although other tests showed improvements more in line with expectations). _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Sat 12 Jul 2014 04:32:21 PM JST Name: use-macros-for-uclass_index-and-utype_class.patch Size: 3kB By: persia <http://gna.org/patch/download.php?file_id=21367> _______________________________________________________ Reply to this item at: <http://gna.org/patch/?4934> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev