AmarnathCJD / gogram

Full-native implementation of MTProto protocol on Golang.
GNU General Public License v3.0
189 stars 37 forks source link

Uploading is extremely slow #126

Closed TheKaram closed 1 month ago

TheKaram commented 1 month ago

Describe the bug Uploading media is extremely slow to start, for a 170MB video i wait for 60 seconds and it didn't start the uploading process, i kept the code running for 2 minutes and the upload has not been finished. For example, in python using pyrofork it takes 9-13 seconds to upload the same file.

To Reproduce Try upload a +100MB media file

Expected behavior Upload process should be much faster than it is now (at least be in the same level of python).

Desktop (please complete the following information):

AnjanaMadu commented 1 month ago

@TheKaram Alrdy vroken vro. Cdj don't care

AmarnathCJD commented 1 month ago

@TheKaram Alrdy vroken vro. Cdj don't care

bruh anju deer

TheKaram commented 1 month ago

sorry, but i didn't understand you

AmarnathCJD commented 1 month ago

your network speed?

AmarnathCJD commented 1 month ago

The issue is, sometimes parelell senders generation gets interrupted due to network drops, I have done such that as soon as a sender is made it starts participating in the upload cycle without waiting for entire senders to be made. I'll push that soon, try it out and say.

TheKaram commented 1 month ago

This is a speed test from server Screenshot_20240804-182157_Termius~3

TheKaram commented 1 month ago

The issue is, sometimes parelell senders generation gets interrupted due to network drops, I have done such that as soon as a sender is made it starts participating in the upload cycle without waiting for entire senders to be made. I'll push that soon, try it out and say.

Ok, thank you for your great work.

AmarnathCJD commented 1 month ago

try now and provide update on this.

TheKaram commented 1 month ago

Wow, it's very fast now :fire:.

170MB video: Gogram: 10.8s Pyrofork: 12s 1.4GB video: Gogram: 86s Pyrofork: 82.5s

This small difference is a margin of error. Thank you very much for this great work :zap:.