mirror of
https://github.com/penpot/penpot.git
synced 2025-07-14 20:57:20 +02:00
♻️ Refactor some allocations
This commit is contained in:
parent
4f7d97a31e
commit
8922e7454f
9 changed files with 183 additions and 12 deletions
|
@ -572,6 +572,9 @@ impl RenderState {
|
|||
performance::end_measure!("tile_cache");
|
||||
|
||||
self.pending_nodes.clear();
|
||||
if self.pending_nodes.capacity() < tree.len() {
|
||||
self.pending_nodes.reserve(tree.len() - self.pending_nodes.capacity());
|
||||
}
|
||||
// reorder by distance to the center.
|
||||
self.current_tile = None;
|
||||
self.render_in_progress = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue