DescriptionAvoid status strings on successful ValueStore status.
ValueStore::Status mirrors a leveldb "Status" object which contains an error/success code and a string message.
LevelDB is carefully written so that an "OK" status does not have a message associated with it. But then in the Chrome ValueStore code the string is unconditionally retrieved (LevelDB maps this to "OK") and then expensive search-and-replace operations are performed on it.
This changes the levelDB "Status" to avoid the status string on "OK". This no-string-on-OK state is already implied by the Status header.
Review-Url: https://codereview.chromium.org/2799543002
Cr-Commit-Position: refs/heads/master@{#462734}
Committed: https://chromium.googlesource.com/chromium/src/+/5cba6a6eeb7463afbc2445f05914f26a66874454
Patch Set 1 #
Messages
Total messages: 12 (8 generated)
|