Boost logo

Boost :

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

  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.)



Boost list run by bdawes at, gregod at, cpdaniel at, john at