Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1811750 - Eliminate redundant array filling in performance.measur…
…e r=sefeng Basically we were falling off a cliff where if we had a bunch of marks recorded with a particular name, when trying to measure we would fill an array with all of them only to return the last one. This just replaces that by iterating in reverse and returning the first matching mark. Arguably we should be using a hashmap or something here, but this is a quick and trivial improvement that I think will resolve the reported issue. Differential Revision: https://phabricator.services.mozilla.com/D199451
- Loading branch information