superseriousbusiness / gotosocial

Fast, fun, small ActivityPub server.
https://docs.gotosocial.org
GNU Affero General Public License v3.0
3.67k stars 310 forks source link

[performance] Image decoding speedups #750

Closed tsmethurst closed 1 year ago

tsmethurst commented 2 years ago

Right now in the internal/media package we decode images twice when parsing thumbnails/blurhashes/dimensions etc. We could tweak some of the logic in there to only decode into image.Image once in order to squeeze out better performance.

tsmethurst commented 1 year ago

closed by https://github.com/superseriousbusiness/gotosocial/pull/1288