reka.js icon indicating copy to clipboard operation
reka.js copied to clipboard

High Memory Consumption with Rekajs Library

Open K1NZ54 opened this issue 1 year ago • 3 comments

I am writing to report a significant issue regarding the Rekajs library's memory consumption, which seems to be unusually high compared to expected benchmarks.

When refreshing a page on Google Chrome that utilizes the Rekajs library, the memory usage reported by the Chrome DevTools exceeds 485MB. This is already quite high, but the situation escalates when loading pages with more elements than the provided examples; memory usage can spike to between 800MB and 1GB. For context, when utilizing a full React setup under similar conditions, the expected memory footprint would be around 120MB.

This discrepancy in memory usage suggests there might be a memory leak or an inefficiency within the Rekajs library's handling of DOM elements or state management, especially under heavy load or when rendering complex UIs.

Capture d’écran 2024-04-05 à 12 35 00

Thank you for your help

K1NZ54 avatar Apr 05 '24 10:04 K1NZ54

Could you create a small demo reproducing the issue on a Github repo (or on Codesandbox/Stackblitz)? I can investigate it from there

prevwong avatar Apr 06 '24 09:04 prevwong

@prevwong Here's the dummy program, the editor tab memory goes over 1.6GB sometimes. dummy-program.zip

flashlog avatar May 16 '24 05:05 flashlog

In my own usage, it happens over time, maybe history manager getting full? Seems to be fine after a page refresh even with a large "program".

hennessyevan avatar Aug 23 '24 13:08 hennessyevan