urfdvw / circuitpython-online-ide-2

The CircuitPython Online IDE is a browser-based IDE for CircuitPython supported microcontrollers. No installation needed. Handy and powerful.
https://urfdvw.github.io/circuitpython-online-ide-2
GNU General Public License v3.0
4 stars 2 forks source link

[#27] Auto refresh folder view #31

Closed urfdvw closed 7 months ago

urfdvw commented 7 months ago

issue: https://github.com/urfdvw/CircuitPython-online-IDE2/issues/27

This is achieved by checking if the folder tree is changed. The tree is constructed from the root.

MISC

urfdvw commented 7 months ago

Wil not merge now, this is costing too much CPU on low spec machines. To be specific: On N5000 laptop with fan cooling, cost about a constant 20% cpu power.

urfdvw commented 7 months ago

Found out it is OK to not check before each periodic update. Checking itself is costing lot of resource.