mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:57:44 +00:00
LibGfx: Elide predictable reallocations in GIF loader
This commit is contained in:
parent
90971673c7
commit
39c09cec88
1 changed files with 2 additions and 2 deletions
|
@ -228,9 +228,9 @@ public:
|
||||||
private:
|
private:
|
||||||
void init_code_table()
|
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) {
|
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;
|
m_original_code_table = m_code_table;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue