famedly / matrix-dart-sdk

Matrix SDK written in pure Dart.
GNU Affero General Public License v3.0
52 stars 30 forks source link

perf: use decodeNamedImage instead of decodeImage #1797

Closed coder-with-a-bushido closed 3 weeks ago

coder-with-a-bushido commented 3 months ago

Might improve image compression performance because decodeImage documentation reads "...WARNING Since this will check the image data against all known decoders, it is much slower than using an explicit decoder."