mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
![]() Reduces the time to run Build/lagom/image ~/src/libwebp/webp_js/test_webp_wasm.webp -o tmp.png from 0.5s to 0.25s. Before, 60% of the time was spent decoding webp and 40% writing png. Now, 16% of the time was spent decoding webp and 84% writing png. That means png writing takes 0.2s, and webp decoding time went from 0.3s to 0.05s. A template expression without explicit return type deduces its return type as if for a function whose return type is declared auto. That does deduce return-by-value, while `decltype(auto)` would deduce return-by-reference. Explictly saying `decltype(auto)` would work too, but writing out the type is maybe easier to understand. No behavior change other than being much faster. |
||
---|---|---|
.. | ||
BMPLoader.cpp | ||
BMPLoader.h | ||
BMPWriter.cpp | ||
BMPWriter.h | ||
DDSLoader.cpp | ||
DDSLoader.h | ||
GIFLoader.cpp | ||
GIFLoader.h | ||
ICOLoader.cpp | ||
ICOLoader.h | ||
ImageDecoder.cpp | ||
ImageDecoder.h | ||
JPEGLoader.cpp | ||
JPEGLoader.h | ||
PBMLoader.cpp | ||
PBMLoader.h | ||
PGMLoader.cpp | ||
PGMLoader.h | ||
PNGLoader.cpp | ||
PNGLoader.h | ||
PNGShared.h | ||
PNGWriter.cpp | ||
PNGWriter.h | ||
PortableFormatWriter.cpp | ||
PortableFormatWriter.h | ||
PortableImageLoaderCommon.h | ||
PortableImageMapLoader.h | ||
PPMLoader.cpp | ||
PPMLoader.h | ||
QOILoader.cpp | ||
QOILoader.h | ||
QOIWriter.cpp | ||
QOIWriter.h | ||
TGALoader.cpp | ||
TGALoader.h | ||
WebPLoader.cpp | ||
WebPLoader.h |