Factor/To do/Performance

  • can be faster; if base is a multiple of a power of two, factor out the power of 2 and use a shift, and use binary-reduce to multiple together the rest
  • <range> is slow; / 1 + 0 max >integer no good
  • we can use memsetpattern to initialize strings, arrays on OS X 10.5

(comment: can't you write your own optimized memset with intrinsics ? It's not much code and it would be more portable. I can provide the x86 code if you want --pruned)

This revision created on Sat, 4 Oct 2008 10:06:41 by prunedtree