• dev-52 fff4250287

    Ghost released this 2026-07-02 19:21:32 +03:00 | 2992 commits to dev since this release

    Replace repeated pop-from-front loops with single-range operations when capping diagnostics vectors to their max size, avoiding quadratic behavior. Updated proxy_diagnostics.cpp to use result.mid(...) and vector::erase(begin, end - N) for trimming, and adjusted the corresponding tests in test_proxy_diagnostics.py to assert the new code paths and add a linear-trimming check. Files changed: Telegram/SourceFiles/mtproto/proxy_diagnostics.cpp, Telegram/SourceFiles/tests/test_proxy_diagnostics.py.

    Downloads