mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 03:56:16 +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
Notes:
sideshowbarker
2024-07-18 17:08:40 +09:00
Author: https://github.com/bgianfo
Commit: 5bfba3f789
Pull-request: https://github.com/SerenityOS/serenity/pull/7613
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