ax1 / iridiumjs

🚀 Boost HTML horsepower
MIT License
1 stars 0 forks source link

add a mini garbage collector to remove unused router objects #13

Open ax1 opened 7 years ago

ax1 commented 7 years ago

This could be part of a mini garbage collector task and may involve other elements.

Not critical, but it is useful when an application has been used in the browser for a long time without refreshing (i:e a security monitor or similar). A router footprint is currently very small compared to other objects, but it is easy to manage deletions.

First we should add a timestamp to every router call then the gc would check every 10 min if router was 1 hour ago and delete it