mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:47:35 +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
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…
Add table
Add a link
Reference in a new issue