mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:07:36 +00:00
LibX86: malloc a bit less
This reduces malloc()/free() calls in `disasm /bin/id` by 30% according to LIBC_DUMP_MALLOC_STATS. No measurable performance change (the number of empty block hits remains unchanged, and that's what's slow), but maybe a nice change regardless?
This commit is contained in:
parent
8fe89cf441
commit
2c82b69bd7
2 changed files with 119 additions and 18 deletions
|
@ -522,7 +522,7 @@ private:
|
|||
template<typename InstructionStreamType>
|
||||
Instruction(InstructionStreamType&, bool o32, bool a32);
|
||||
|
||||
String to_string_internal(u32 origin, const SymbolProvider*, bool x32) const;
|
||||
void to_string_internal(StringBuilder&, u32 origin, const SymbolProvider*, bool x32) const;
|
||||
|
||||
const char* reg8_name() const;
|
||||
const char* reg16_name() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue