reo7sp / tgbot-cpp

C++ library for Telegram bot API
http://reo7sp.github.io/tgbot-cpp
MIT License
995 stars 238 forks source link

Replace boost property_tree with rapidJSON #286

Closed DTraitor closed 1 year ago

DTraitor commented 1 year ago

Moving to a native json solution would definitely increase performance (I'll try to measure the difference when I have time) and make the code a little less clunkier.

P.S. If the idea is supported - I am ready to implement it myself

DTraitor commented 1 year ago

After replacing property_tree with rapidJSON it appears sending messages became a bit slower. Feel free to play around with rapidJSON fork: https://github.com/DTraitor/tgbot-cpp/tree/rapidjson (note, not all optional values are "implemented", some don't call a function to check if field with them exists in the JSON)

Closing for now