-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utf8n_to_uv_msgs: Avoid unnecessary work
The outermost block here is executed when any of three types of problematic Unicode code points is encountered, and the caller has indicated special handling of at least one of those types. Before this commit, we set a flag to later look to see if what was encountered matched the type the caller specified. This commit changes to do that looking at the point where the flag had been set, and only sets the flag if necessary. This may completely avoid the later work, which has set-up overhead, and this will make future commits simpler.
- Loading branch information
1 parent
e6954d8
commit a3b31bf
Showing
1 changed file
with
22 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