mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 20:33:10 +00:00
LibGfx: Elide predictable reallocations in GIF loader
This commit is contained in:
parent
90971673c7
commit
39c09cec88
|
@ -228,9 +228,9 @@ public:
|
|||
private:
|
||||
void init_code_table()
|
||||
{
|
||||
m_code_table.clear();
|
||||
m_code_table.ensure_capacity(m_table_capacity);
|
||||
for (u16 i = 0; i < m_table_capacity; ++i) {
|
||||
m_code_table.append({ (u8)i });
|
||||
m_code_table.unchecked_append({ (u8)i });
|
||||
}
|
||||
m_original_code_table = m_code_table;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue