mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
LibVideo/VP9: Apply higher optimization levels to Decoder and Parser
With this change, decode times on GCC as measured by TestVP9Decode are reduced by about 15%. Not a bad improvement for a few added lines :^)
This commit is contained in:
parent
f351418a1e
commit
5f7099cff6
Notes:
sideshowbarker
2024-07-17 04:49:48 +09:00
Author: https://github.com/Zaggy1024 Commit: https://github.com/SerenityOS/serenity/commit/5f7099cff6 Pull-request: https://github.com/SerenityOS/serenity/pull/16236 Reviewed-by: https://github.com/timschumi
2 changed files with 8 additions and 0 deletions
|
@ -12,6 +12,10 @@
|
|||
#include "Decoder.h"
|
||||
#include "Utilities.h"
|
||||
|
||||
#if defined(AK_COMPILER_GCC)
|
||||
# pragma GCC optimize("O3")
|
||||
#endif
|
||||
|
||||
namespace Video::VP9 {
|
||||
|
||||
Decoder::Decoder()
|
||||
|
|
|
@ -13,6 +13,10 @@
|
|||
#include "Parser.h"
|
||||
#include "Utilities.h"
|
||||
|
||||
#if defined(AK_COMPILER_GCC)
|
||||
# pragma GCC optimize("O3")
|
||||
#endif
|
||||
|
||||
namespace Video::VP9 {
|
||||
|
||||
#define TRY_READ(expression) DECODER_TRY(DecoderErrorCategory::Corrupted, expression)
|
||||
|
|
Loading…
Reference in a new issue