refactor: bigger pool

This commit is contained in:
cha0s 2019-04-25 02:17:24 -05:00
parent da446e17d2
commit 810e449012

View File

@ -110,7 +110,7 @@ export class TextNodeRenderer extends Proton.BaseRender {
this.parent = element; this.parent = element;
// Start with a warm cache. // Start with a warm cache.
if (this.parent && 0 === this.constructor.freeList.length) { if (this.parent && 0 === this.constructor.freeList.length) {
for (let i = 0; i < 200; ++i) { for (let i = 0; i < 500; ++i) {
const target = new TextNode(); const target = new TextNode();
target.createDom(); target.createDom();
this.parent.appendChild(target.div); this.parent.appendChild(target.div);