As someone pointed out, you could have an attribute that says 'optimize the heck out of this routine', and your definition of heck would be a parameter to the optimizer.
Larry WallI still drive my 1977 Honda Accord. The paint is almost all worn off. It's still running.
Larry Wall