[Glass] [GS/SS Beta] Is there a fastest DateAndTime>>#printYMDOn: ?

Paul DeBruicker pdebruic at gmail.com
Wed Jun 11 11:35:23 PDT 2014


Richard Sargent wrote
>>
>> So...why I am using that string with the 5 fields for sorting?
>> Well...because some of those fields may be nil. And they are 3 to 5
>> fields
>> to sort by. So with the string it is very very easy because I simply
>> concatenate a whole string with the fields in order and hence the sort
>> works at the string level.
> 
> 
> Sorting is at best O(n log n). DO NOT do conversions to determine the sort
> order. Your performance is guaranteed to be pathological.


There are many places where I may have made boneheaded performance related
mistakes .  Other than experience, is there a reference for a set of 'don't
do this and if you are stop and fix it right now' tips?  

I know to measure first and then start fixing, but I'm afraid I've reached a
local maxima because I have ... unrefined ... technique.






--
View this message in context: http://forum.world.st/GS-SS-Beta-Is-there-a-fastest-DateAndTime-printYMDOn-tp4762666p4762709.html
Sent from the GLASS mailing list archive at Nabble.com.


More information about the Glass mailing list