>>>>> "PM" == Paul Makepeace <[email protected]> writes:

  PM> Do the benchmarks but with a repetition which mirrors how larger
  PM> output in general is built. *join is the only one that's linear*, and
  PM> substr, while the winner on smaller n, takes a severe beating as the
  PM> string length goes up. The naive assignment sucks but not as horribly.

i posted a comment to that effect on the beginner's list. these ops will
vary in speed based on string lengths (both original and prepend). it is
hard to tell what will happen in the perl guts with the various ops
since there could be extra buffer copies and stuff being done based on
string sizes.

uri

-- 
Uri Guttman  ------  [email protected]  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to