In enterprise software, optimizing performance usually means removing the custom stuff.
A common complaint on HN is bloated web performance. Surely we don't think the web is bloated because of too much custom code as opposed to too many off-the-shelf components?