-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't using
ByteOffsetCache
if string is short.
There are two reasons for: 1. Avoid using associatedObject on NSTaggedPointerString (< 7 bytes) because that does not free associatedObject. 2. Using cache is overkill for short string. There is no verified reason for the threshold "50", but I
- Loading branch information
1 parent
e54f847
commit 77724d4
Showing
1 changed file
with
17 additions
and
3 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