Minor bot API methods call optimizations. #277
Closed
kvizyx
started this conversation in
Show & Tell
Replies: 1 comment 4 replies
|
Hi @kvizyx , thanks for the research, feel free to submit a PR, I will review it, if it doesn't break anything, I will be happy to merge that If this change is big, you can show a simple example for one method and I will first review that and we can continue from that point |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
While researching telego, I found some "free" optimizations that don't change the library API and don't affect code readability (if not improve it) related to the pointers management in bot API methods and general Telegram API calling function. They reduce a couple of allocations when calling any bot method, and increase its speed a bit (about ~10% depending on the method's payload).
Do you accept (or it's better to say does telego need) such changes, or there is no point in me doing it?
All reactions