Comments (7)
Hmm... you're definitely right that there's a memory leak somewhere.
I think it has something to do with the form, but I'm not entirely sure. I'll work on figuring out what's happening.
from telegram-bot-api.
Well, this is what's using the most memory.
(pprof) top
26184.78kB of 26184.78kB total ( 100%)
Dropped 33 nodes (cum <= 130.92kB)
flat flat% sum% cum cum%
24648kB 94.13% 94.13% 24648kB 94.13% bytes.makeSlice
from telegram-bot-api.
This might be a limitation in Go.
from telegram-bot-api.
so nothing we can do about it ?
I can confirm that github.com/rockneurotiko/go-tgbot
has the same issue
from telegram-bot-api.
Well, this commit will reduce memory usage, a 30MiB test file increases my memory usage by ~2MB.
That upload function is pretty much identical to mine, so I don't know what the difference could be.
from telegram-bot-api.
I just tried it out, it is a great improvement.
from telegram-bot-api.
If in the future anyone comes up with a better solution, I'd be happy to reopen this. Until then, I'm going to close it.
from telegram-bot-api.
Related Issues (20)
- Reply with audio doesn't work
- How to telegram bot send message then display the status that referenced the message in input box HOT 1
- Is this project abandoned? HOT 1
- how to deploy on a paas platform with webhook HOT 2
- InlineKeyboardButton web_app HOT 2
- Show Alert
- doesn't receive updates from inline keyboard HOT 1
- Why is this repository not updated? HOT 3
- tgbotapi.NewMediaGroup function does not work correctly
- Unmarshal error for banChatMember method HOT 3
- panic in random times HOT 1
- When can we expect the next update?
- Reaction events
- Default handler processes updates out of order HOT 1
- How to banChatMember?
- Get event chat added bot?
- How do I check if a message sent from a user belongs to a media group?
- Protected content
- GetChatAdministrators docs say it doesn't return bots, but it does
- PLEASE ARCHIVE THIS PROJECT IF YOU'RE NOT GOING TO MAINTAIN IT
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegram-bot-api.