yysun/apprun

how to improve performance

ishanray opened this issue · 1 comments

https://stefankrause.net/js-frameworks-benchmark8/table.html

Especially for

Time to update the text of every 10th row (with 5 warmup iterations) for a table with 10k rows.
--

Especially when compared to the other light framework svelte

yysun commented

It is the side effect of using virtual DOM and I am still trying to find a way to improve.
It works well in general, but if the performance is really important, you can try using lit-html.

import { html, render } from 'lit-html';
import { app } from 'apprun';
app.render = (element, html) => render(html, element); // overwrite AppRun render
const view = state => html`<div>${state}</div>`;
app.start(document.body, 0, view);