reo7sp / tgbot-cpp

C++ library for Telegram bot API

Home Page:http://reo7sp.github.io/tgbot-cpp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace boost property_tree with rapidJSON

DTraitor opened this issue · comments

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

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