MadelineProto, the async PHP client API for the telegram MTProto protocol, was updated to 8.4.18!
This release features a major internal refactoring of the message system and the auth state machine, bringing major stability and performance improvements by removing legacy code and switching to a new reactive model.
This reactive model avoids some previously problematic state transitions, for example during network issues, by handling the connection state machine using a reactive actor model.
I’ve created a new reactive programming library based on the actor model, and it will be published as a separate library once it is mature enough!
Additionally, the docker image is now based on Debian, and features a patched version of PHP with jemalloc for improved performance.
Fixes:
- Fix handling of certain network and auth issues
- Fix some QR code login issues
- Reduce CPU usage by switching to linked lists instead of zend hashmaps where possible (previously, usage of zend hashmaps forced periodic reallocation to avoid memory leaks caused by frequent removal of keys)
- Multiple other fixes and improvements