www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - 50x higher serialization performance than Cereal! Can D be achieved?

reply zoujiaqing <zoujiaqing gmail.com> writes:
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:
  - https://github.com/atilaneves/cerealed
  - https://github.com/eyalz800/zpp_bits
Dec 27 2023
parent reply zoujiaqing <zoujiaqing gmail.com> writes:
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:
  - https://github.com/atilaneves/cerealed
  - https://github.com/eyalz800/zpp_bits
Sorry! It's 14x faster.
Dec 27 2023
parent reply Bastiaan Veelo <Bastiaan Veelo.net> writes:
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](https://code.dlang.org/packages/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.
Dec 27 2023
parent An Pham <home home.com> writes:
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](https://code.dlang.org/packages/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
Dec 27 2023