1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:27:46 +00:00

AK: Allow inlining ref-count functionality

Previously we'd incur the costs for a function call via the PLT even
for the most trivial ref-count actions like increasing/decreasing the
reference count.

By moving the code to the header file we allow the compiler to inline
this code into the caller's function.
This commit is contained in:
Gunnar Beutner 2021-06-03 01:12:09 +02:00 committed by Andreas Kling
parent ab4f4ddc3c
commit ed0068d04d
3 changed files with 33 additions and 53 deletions

View file

@ -277,7 +277,6 @@ set(AK_SOURCES
../AK/JsonParser.cpp
../AK/JsonValue.cpp
../AK/LexicalPath.cpp
../AK/RefCounted.cpp
../AK/String.cpp
../AK/StringBuilder.cpp
../AK/StringImpl.cpp