mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
LibELF + LibDebug: Reduce allocations during symbolification
Avoid promotion of static strings to AK::String, instead use AK::StringView and operator ""sv, to force string view's instead which avoids allocation of String. This code path isn't hot enough that it makes a huge difference, but every bit counts.
This commit is contained in:
parent
35a97884aa
commit
5bfba3f789
5 changed files with 12 additions and 12 deletions
|
@ -60,7 +60,7 @@ public:
|
|||
private:
|
||||
void populate_compilation_units();
|
||||
|
||||
ReadonlyBytes section_data(const String& section_name) const;
|
||||
ReadonlyBytes section_data(const StringView& section_name) const;
|
||||
|
||||
const ELF::Image& m_elf;
|
||||
ReadonlyBytes m_debug_info_data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue