Asking help to add fastloading to TerminalClock #5723
Replies: 1 comment
-
Posted at 2023-02-12 by @halemmerich At first glance I would suspect #L176 being called on every lock and then setting a new timeout without clearing the old one. It should be a fairly tiny memory leak if this is the reason, the timeout only can accumulate over 45 seconds. Posted at 2023-02-15 by Stiralbios Thanks, I did the changes on my repo (https://github.com/Stiralbios/BangleApps) and it didn't solve the issue. The memory leak is quite high (~450) so it's probably something big that isn't unloaded like a module but I don't see how.
Posted at 2023-02-15 by @halemmerich I meant calling something like Posted at 2023-02-15 by Stiralbios Thanks, fixed it but the memory leak is still here Posted at 2023-02-15 by BartS23 Change #L95 from
to
('pressure' not 'onPressure') should fix it. Posted at 2023-02-17 by Stiralbios Thanks it fixed it. It was a dumb mistake XD Posted at 2023-02-17 by @thyttan @BartS23 once again to the rescue! 😉 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-02-12 by Stiralbios
I keep going back to it and I have no idea why there is still a memory leak when uncommenting the
remove
method.I welcome any help or tips ;)
The code is here : https://github.com/espruino/BangleApps/blob/c0d301c1e7c59a1d8e1714cdd5b51deeb7a7ae6b/apps/terminalclock/app.js
Beta Was this translation helpful? Give feedback.
All reactions