telegram-export icon indicating copy to clipboard operation
telegram-export copied to clipboard

High CPU usage when exporting

Open maiqueg opened this issue 5 years ago • 4 comments

Anyone else having really high CPU usage when executing telegram-export?

It reaches 100% with my Xeon quad 2.66ghz.

I saw a bug that was fixed on the new telethon version, that could be related: "Some bug in Python 3.5.2’s asyncio causing 100% CPU load if you forgot to call client.disconnect(). The method is called for you on object destruction, but you still should disconnect manually or use a with block."

Any plans to upgrade the telegram-export to support telethon 1.6.2?

maiqueg avatar Mar 14 '19 14:03 maiqueg

I don't think the bug is present in the version TE uses.

Using latest Python is always a good idea anyway.

Yes, of course TE should use latest Telethon some day.

Lonami avatar Mar 14 '19 14:03 Lonami

I was running python 3.5.2, upgraded to 3.7.2 and still reaching 100% CPU when using TE. This is not normal, right? I could provide a few logs if you guide me on how/where to collect them.

maiqueg avatar Mar 14 '19 15:03 maiqueg

It would be helpful if we could spot where exactly is getting stuck to hit 100% CPU usage, but right now I don't know how we could find that out.

Lonami avatar Mar 14 '19 15:03 Lonami

I have also experienced this using a Debian 9 VM in Windows.

ghost avatar Mar 16 '19 18:03 ghost