-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize escapeXMLControlChars() by:
1. Checking if the string contains any of the XML control chars to handle the common case. 2. Using string append instead of stringstream. Added tests to measure the performance difference. Change-Id: Ia0d2caaa34366cdd19fb7e36cf8d1a6d91693ba6 Closes-Bug: #1461681 (cherry picked from commit 886a7c5)
- Loading branch information
Megh Bhatt
committed
Jun 6, 2015
1 parent
dec97d9
commit 1f80059
Showing
2 changed files
with
168 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters