You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doclib/msgpack/unpacker.rb
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,8 @@ class Unpacker
19
19
# Supported options:
20
20
#
21
21
# * *:symbolize_keys* deserialize keys of Hash objects as Symbol instead of String
22
+
# * *:freeze* freeze the deserialized objects. Can allow string deduplication and some allocation elision.
23
+
# * *:key_cache* Enable caching of map keys, this can improve performance significantly if the same map keys are frequently encountered, but also degrade performance if that's not the case.
22
24
# * *:allow_unknown_ext* allow to deserialize ext type object with unknown type id as ExtensionValue instance. Otherwise (by default), unpacker throws UnknownExtTypeError.
0 commit comments