Closed mickeyl closed 3 years ago
@mickeyl If you want to use a different encoder/decoder, you can just call registerSerializer
/registerDeserializer
and their metadata counterparts directly rather than using the helpers.
@gcox Thanks, yes, I can do that – I just felt it would be more nice to have it in the official API.
YapDatabase.swift
'scodableSerializer
andcodableDeserializer
explicitly mention thePropertyListEncoder
/PropertyListDecoder
which not only creates relatively unefficient byte streams, but is also not available on platforms other than Apple's.It would be nice to have the option to provide the actual encoder/decoder classes here, so that we could, e.g., use a more efficient
MessagePackEncoder
.