Page MenuHomePhabricator

Improve the performance of phutil_loggable_string()
ClosedPublic

Authored by epriestley on Nov 26 2013, 1:33 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 8, 8:06 PM
Unknown Object (File)
Fri, Dec 6, 4:49 PM
Unknown Object (File)
Thu, Nov 21, 9:43 PM
Unknown Object (File)
Sun, Nov 17, 10:07 PM
Unknown Object (File)
Thu, Nov 14, 4:56 PM
Unknown Object (File)
Nov 10 2024, 2:15 AM
Unknown Object (File)
Nov 5 2024, 9:43 PM
Unknown Object (File)
Oct 20 2024, 10:01 PM
Subscribers

Details

Summary

Ref T4162.

  • Before doing anything character oriented, test if the whole string is fine to print as-is.
  • Reduce the number of calls to string().
Test Plan

Saw cost drop on profiles.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped