A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed natively to React, Angular, Vue, and traditional web developers from a single, framework-agnostic codebase.
[X] I have searched for existing issues that already report this problem, without success.
Stencil Version
2.15.1
Current Behavior
Firefox needs around 3s for this on my MacBook M1 Max:
index.html
<body>
<my-component></my-component> <-- only renders a `<div></div>`
... repeat line above 5000 times
</body>
However, when <my-component> includes another component, like <my-component-two> (which is a copy of <my-component>), Firefox needs around 12s, which is 400% more.
It's probably a browser issue, but still: maybe Stencil can do something about it?
Expected Behavior
Faster performance.
Steps to Reproduce
Clone the stencil-component-starter repo, copy my-component to my-component-two and call <my-component> 5000 times in index.html.
Prerequisites
Stencil Version
2.15.1
Current Behavior
Firefox needs around 3s for this on my MacBook M1 Max:
However, when
<my-component>
includes another component, like<my-component-two>
(which is a copy of<my-component>
), Firefox needs around 12s, which is 400% more.It's probably a browser issue, but still: maybe Stencil can do something about it?
Expected Behavior
Faster performance.
Steps to Reproduce
Clone the
stencil-component-starter
repo, copymy-component
tomy-component-two
and call<my-component>
5000 times inindex.html
.Code Reproduction URL
https://github.com/ionic-team/stencil-component-starter
Additional Information
No response