Thread overview
50x higher serialization performance than Cereal! Can D be achieved?
Dec 27
An Pham
December 27

Look this benchmarks:
https://github.com/eyalz800/zpp_bits#benchmark

D has cerealed. The performance is already good. But the C++serialization library is too powerful. Can D be achieved?

Links:

December 27

On Wednesday, 27 December 2023 at 12:37:11 UTC, zoujiaqing wrote:

>

Look this benchmarks:
https://github.com/eyalz800/zpp_bits#benchmark

D has cerealed. The performance is already good. But the C++serialization library is too powerful. Can D be achieved?

Links:

Sorry!
It's 14x faster.

December 27

On Wednesday, 27 December 2023 at 12:38:16 UTC, zoujiaqing wrote:

>

On Wednesday, 27 December 2023 at 12:37:11 UTC, zoujiaqing wrote:

>

Look this benchmarks:
https://github.com/eyalz800/zpp_bits#benchmark

D has cerealed. The performance is already good. But the C++serialization library is too powerful. Can D be achieved?

As far as I can see, this benchmark only compares C++ serialisation. On top of that, I doubt the performance of cerealed is at all related to the performance of cereal.

Cerealed is by far the only D serializer; We, for example, are happy users of sbin.

I am not sure of the value of a cross-language serialisation benchmark other than bragging rights, as I wouldn't select a language on serialisation performance. That said, D should have an advantage over C++ because of its introspection capabilities.

--Bastiaan.

December 27

On Wednesday, 27 December 2023 at 17:08:34 UTC, Bastiaan Veelo wrote:

>

Cerealed is by far the only D serializer; We, for example, are happy users of sbin.

New implement for json & binary format
_
https://github.com/apz28/dlang/blob/main/source/pham/utl/utl_serialization.d
https://github.com/apz28/dlang/blob/main/source/pham/utl/utl_serialization_bin.d
https://github.com/apz28/dlang/blob/main/source/pham/utl/utl_serialization_dec.d
https://github.com/apz28/dlang/blob/main/source/pham/utl/utl_serialization_json.d
https://github.com/apz28/dlang/blob/main/source/pham/utl/utl_serialization_pham.d
https://github.com/apz28/dlang/blob/main/source/pham/utl/utl_serialization_std.d

samples from unittest in modules utl_serialization_bin & utl_serialization_json.d