Given:
You have well tested library code
... kept under version control
... whose performance you wish to improve
continued...