Boost logo

Boost :

From: Gary Powell (Gary.Powell_at_[hidden])
Date: 2000-10-10 11:20:52


Hi,
  I have another observation, and that is if you stored the array "enablers"
sorted by key you could do a binary search instead of a linear one in
"enable_special_methods" and "enable_named_method". since the array enablers
is relatively small it won't be a big time savings, but since you have full
control of it, you might as well do the easy optimization here. (I would
also put a note next to the array to alert future additions to insert them
in sorted order.)

  Yours,
 -gary-

gary.powell_at_[hidden]


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk