walnuthq / cairovm.codes

Source code for cairovm.codes — a web app to compile Cairo programs into Sierra and CASM with step-through execution capabilities.
https://cairovm.codes
MIT License
30 stars 24 forks source link

feat: Implement Virtualized Rendering #130

Closed jaipaljadeja closed 6 months ago

jaipaljadeja commented 6 months ago

Cairo codes which generates huge instruction tables or execution trace causes performance lags in low-spec devices as thousands of rows renders into the Browser DOM and even one re-render causes all those thousands of rows to render again which causes performance lags and in fact might crash browsers in some very low end devices. We can improve this drastically by introducing Virtualized Rendering in Execution Trace as well as Instruction Table. Virtualized rendering will only render certain amount of rows which are visible in the browser window and render rest of the rows dynamically while scrolling. I would like to work on this.