Follow-up Comment #4, patch #4940 (project freeciv):

Yes, but the switch statement is unfortunate, and probably causes more of a
slowdown than whether we pass a pointer or a struct containing an enum and a
pointer.  My thought is to replace all the callers with macros that call a
common (callback-based) implementation, which should retain the current
performance with smaller code-size and greater ease of extension (my primary
interest here).


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to