Open the memory profiler on a page that's supposed to be idle, and the retained-size graph should flatten out. On this one it didn't. Every navigation added a little more, and none of it ever came back down. The suspect wasn't a leaked event listener or a forgotten setInterval — both had already been ruled out. It was a cache. A perfectly... Weiterlesen: You're Leaking Memory With That Cache. WeakMap Fixes It.
Intelligence View
⚡ tsecurity.de Intelligence
You're Leaking Memory With That Cache. WeakMap Fixes It.
Open the memory profiler on a page that's supposed to be idle, and the retained-size graph should flatten out. On this one it didn't. Every navigation added a…
Quelle & Fakten · 1 Min. Lesezeit
Quelle: DEV Community (dev.to)
Rubrik: Sichere Programmierung
Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Community-Hinweise zur Meldung
Security Briefing Bezpłatnie · Wypisanie 1 kliknięciem
Intelligence Digest - bezpłatnie
Codziennie najważniejsze wiadomości bezpieczeństwa · można pobrać w każdej chwili
💬 Dyskusja społeczności i komentarze
Rozpocznij dyskusję w strumieniu transmisji Social Chat lub prześlij wyżej wkład ekspercki przez formularz uzupełnień.