digitalmars.D - 50x higher serialization performance than Cereal! Can D be achieved?
- zoujiaqing (7/7) Dec 27 2023 Look this benchmarks:
- zoujiaqing (3/10) Dec 27 2023 Sorry!
- Bastiaan Veelo (11/18) Dec 27 2023 As far as I can see, this benchmark only compares C++
- An Pham (12/14) Dec 27 2023 New implement for json & binary format
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
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_bitsSorry! It's 14x faster.
Dec 27 2023
On Wednesday, 27 December 2023 at 12:38:16 UTC, zoujiaqing wrote:On Wednesday, 27 December 2023 at 12:37:11 UTC, zoujiaqing wrote: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.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?
Dec 27 2023
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