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:
Zaggy1024 2022-11-28 07:53:13 -06:00 committed by Andreas Kling
parent f351418a1e
commit 5f7099cff6
Notes: sideshowbarker 2024-07-17 04:49:48 +09:00
2 changed files with 8 additions and 0 deletions

View file

@ -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()

View file

@ -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)