-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
YAML compile cache: encoding aware symbols
Ref: msgpack/msgpack-ruby#211 The default msgpack Symbol packer/unpacker is not encoding aware which cause all non-ASCII symbols to be unpacked with ASCII-8BIT encoding aka BINARY. So we define a custom packer that prefix the symbol name with `1` for UTF-8 symbols, and `0` for the others (ASCII or binary) If `Encoding.default_internal` is set to something MessagePack doesn't support, we entirely disable the YAML cache.
- Loading branch information
Showing
5 changed files
with
139 additions
and
27 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
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
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