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
caching of the writer objects per type as those are expensive (per documentation)
pooling of the buffers passed into the serialization writer (typical byte array buffer pool)
TCacheValue being object always causes all kinds of issues
Basic unit tests
Polymorphism testing / impl for derived types
CompactBinary implementation
FastBinary implementation
SimpleJson implementation
SimpleXml implementation
Configuration json schema update for known serializers
Goal for the different implementations would be to have different extension methods for the ConfigurationBuilder to let the user choose which Bond serializer to use.
The underlying implementation will probably be able to share 90% of the code... edit: done inc842400
In general, Bond serialization has a lot of limitations compared to Json or even Protobuf. Like, it cannot serialize primitives (string, int), only classes representing a schema.
As suggested by PR #83, Bond serialization would actually be a great addition to the CacheManager "family".
I already did a first implementation to get started: d4b88b6
There is quite a lot of detail to it, and some things are still tbd. Especially regarding performance optimizations (https://microsoft.github.io/bond/manual/bond_cs.html#performance)
object
always causes all kinds of issuesGoal for the different implementations would be to have different extension methods for the
ConfigurationBuilder
to let the user choose which Bond serializer to use.The underlying implementation will probably be able to share 90% of the code...
edit: done in c842400
In general, Bond serialization has a lot of limitations compared to Json or even Protobuf. Like, it cannot serialize primitives (string, int), only classes representing a schema.
But it comes with a really good performance and memory footprint.
Here are some benchmark results to get an idea (source can be found here: https://github.com/MichaCo/CacheManager/blob/dev/test/CacheManager.Benchmarks/SerializationBenchmark.cs):
The text was updated successfully, but these errors were encountered: