apigear-io / objectlink-core-cpp

A object link protocol for C++ 14
MIT License
0 stars 3 forks source link

[FEAT]: performance improvement - change nlohmann for sth elese #41

Open dorotaphanSiili opened 1 year ago

dorotaphanSiili commented 1 year ago

Description

performance measurements showed that lot of time is spend on constructing nlohmann json and converting to/from raw message, the idea would be to test out if would work for us https://simdjson.org/ - claims to be 25x times faster than nlohmann json

Additional Information

No response

dorotaphanSiili commented 8 months ago

First approach made - attempt to extract serialization: https://github.com/apigear-io/objectlink-core-cpp/pull/42 - contains two commits - first encapsulates usage, but still is irreplaceable, second goes to direction of replacing cpp template aligned only to a first commit https://github.com/apigear-io/template-cpp14/pull/116