Hacker News new | ask | show | jobs
by sfteus 1471 days ago
Had something similar happen with low-level components in a PHP application I inherited repeatedly calling trim() and/or str_pad() on values that had already been processed. Refactoring those out led to a 10-15% performance boost in our test suites.