mollersuite / monofile

File sharing over the Discord CDN
https://fyle.uk
The Unlicense
18 stars 3 forks source link

Optimize, stabilize file downloads #44

Closed nbitzz closed 3 months ago

nbitzz commented 8 months ago

Maybe stream attachments & fetch messages from the API as the download goes on to allow it to start immediately?

nbitzz commented 7 months ago

fetch messages from the API as the download goes on

Guess we should probably use the Workers API for this..? @Jack5079 Another alternative is just getting another message after we've sent the data from the last message, I don't think that the overhead from that would be significant + would probably be better anyway since we aren't wasting API requests if the request gets aborted + it's a lot easier to implement

nbitzz commented 3 months ago

readFileStream still needs a little cleanup but this issue is basically done so

nbitzz commented 3 months ago

@Jack5079 Are you like.going to handle fixing readFileStream or do i do it.Cause if you are i'll actually i'll just assign you now hold on

Jack5079 commented 3 months ago

@Jack5079 Are you like.going to handle fixing readFileStream or do i do it.Cause if you are i'll actually i'll just assign you now hold on

image

nbitzz commented 3 months ago

Meow

Jack5079 commented 3 months ago

image

nbitzz commented 3 months ago

We should blow her up

caffeinatedcharlie commented 3 months ago

you're going to do WHAAAAAA

nbitzz commented 3 months ago

Oh wait this is basically done . Basically just cleanup so i will close