mirror of
https://github.com/penpot/penpot.git
synced 2025-07-22 11:08:13 +02:00
⚡ Improve performance on selection react component
Mainly do more static calls and reduce unnecesary allocation
This commit is contained in:
parent
0ea07469d2
commit
1465ed3607
2 changed files with 338 additions and 262 deletions
|
@ -15,6 +15,22 @@
|
|||
|
||||
(defn conj!
|
||||
"A conj! like function for js arrays."
|
||||
[a v]
|
||||
(.push ^js a v)
|
||||
a)
|
||||
([a v]
|
||||
(.push ^js a v)
|
||||
a)
|
||||
([a v1 v2]
|
||||
(.push ^js a v1 v2)
|
||||
a)
|
||||
([a v1 v2 v3]
|
||||
(.push ^js a v1 v2 v3)
|
||||
a)
|
||||
([a v1 v2 v3 v4]
|
||||
(.push ^js a v1 v2 v3 v4)
|
||||
a)
|
||||
([a v1 v2 v3 v4 v5]
|
||||
(.push ^js a v1 v2 v3 v4 v5)
|
||||
a)
|
||||
([a v1 v2 v3 v4 v5 v6]
|
||||
(.push ^js a v1 v2 v3 v4 v5 v6)
|
||||
a))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue