Skip to content

Pin aiogram 3.28.2 — ~65 MB less RAM per bot - #1

Open
infinitybuddha29 wants to merge 1 commit into
mainfrom
pin-aiogram
Open

infinitybuddha29 wants to merge 1 commit into
mainfrom
pin-aiogram

Conversation

@infinitybuddha29

Copy link
Copy Markdown
Contributor

aiogram 3.29+ держит заметно больше памяти сразу после import aiogram (замер в python:3.12-slim, RSS):

aiogram RSS
3.28.2 ~100 MB
3.29.0 ~128 MB
3.30.0 ~154 MB
3.31.0 ~167 MB

На проде бот из шаблона держал ~155 MB anon из лимита 256 MB. Новее 3.28 бот ничего не использует: все модули импортируются и регистрируют хендлеры на 3.28.2, все вызовы Telegram API в коде на месте.

🤖 Generated with Claude Code

aiogram 3.29+ holds noticeably more memory right after import (measured in
python:3.12-slim: 3.28.2 ~100 MB RSS, 3.30 ~154 MB, 3.31 ~167 MB). The bot
uses no API from those versions; all modules import and register handlers
on 3.28.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant