horahoradev / PrometheusTube

Steal fire (videos) from the Gods (other video sites)
https://prometheus.tube
BSD 2-Clause "Simplified" License
81 stars 4 forks source link

fix: rewrite for memory efficiency #23

Open Jaarabytes opened 3 weeks ago

Jaarabytes commented 3 weeks ago

Rewrite Upload func to reuse the same buffer chunk (using defer and Close) increasing memory efficiency

Add maxThumbnailSize; (you can customize to whichever value you see fit)

horahoradev commented 2 days ago

oh shit we have a pr lmao just ping me next time if i don't respond

horahoradev commented 2 days ago

looks fine to me tbh, just not sure about the initial defers