o0101 / good.html

💎 Good.HTML. A nice framework without the bad stuff. Lots of custom elements, and nice templates. Good. HTML
https://o0101.github.io/good.html/
MIT License
21 stars 2 forks source link

[perf] refactor type checking code that uses a lot of CPU (vv) #15

Closed o0101 closed 3 years ago

o0101 commented 3 years ago

Looking at the perf from load of sg-cells (7GUIs cells example ~ 6000 nodes) it's unacceptable. It's too slow.

Most of the time occurs in type checking code, I think I can mostly remove all that and greatly simplify it.

image


And the other end of the profile:

sg-cells-load-profile-1

o0101 commented 3 years ago

These two sides process and recurse/validate are all about checking the objects that get passed into the template slots. That's important but I think I can greatly increase the speed of this.