Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
small refactoring in globals.cpp
oBFusCATed:
A template is fine, but generally doesn't make much difference.
frithjofh:
not for the size of executable, but to avoid the duplicate
frithjofh:
factory recall !
found a strange error in my patch. sorry, haven't tested it enough, I think.
will post new patch these days
frithjofh:
here the new version of the patch.
discovered, that assign() for wxArrayString does something else than it should. it appends the given values instead of replacing the contents of the wxArrayString...
if anyone is interested, here my measuring in msec for the functions returning an array/vector from a string:
item count - current arry - new array - current std::vec - new std::vec51210101.20070702.5002402615.000932106310.00040223956
regards
frithjofh:
reworked the next function: EscapeSpaces
speed up in msec:
words in text |current version |new version320064101286025628051297010243880204815700409662641
removed the comment about speeding this function up.
some minor changes
regards
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version