URL:
<http://gna.org/patch/?6552>
Summary: is_native_to_class() to take extras as pointer
parameter
Project: Freeciv
Submitted by: cazfi
Submitted on: Thu 05 Nov 2015 07:18:04 PM EET
Category: general
Priority: 5 - Normal
Status: In Progress
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release:
_______________________________________________________
Details:
is_native_to_class() related performance improvements by turning extras
bitvector parameter to pointer to one:
- Instead of copying whole extras bitvector around, just pass a pointer to
existing one
- Caller can pass just NULL instead of constructing empty bitvector when no
bit should be considered
- is_native_to_class() knows to skip all checks on bits on extras when it gets
NULL instead of valid pointer
- For efficiently pass values from tile_extras() to is_native_to_class(), also
it returns just the pointer to existing bitvector instead of copying or
constructing one
Attached S2_6 version.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 05 Nov 2015 07:18:04 PM EET Name: NativeToClassExtrasPtr-S2_6.patch
Size: 12kB By: cazfi
<http://gna.org/patch/download.php?file_id=25622>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?6552>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev