Suche senden
Hochladen
Memory leak in Javascript - Renan Bastos
•
0 gefällt mir
•
77 views
Tchelinux
Folgen
Memory leak in Javascript - Renan Bastos Tchelinux 2018 Porto Alegre
Weniger lesen
Mehr lesen
Technologie
Melden
Teilen
Melden
Teilen
1 von 14
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
Full-Stack JavaScript with Node.js
Full-Stack JavaScript with Node.js
Michael Lehmann
Devcast node.js e mongo db o casamento perfeito
Devcast node.js e mongo db o casamento perfeito
Suissa
Bs webgl소모임004
Bs webgl소모임004
Seonki Paik
ネイティブ開発アンチパターン
ネイティブ開発アンチパターン
Yuki Tamura
Snow
Snow
Desarrollo Regional de la Educación
Node day 2014
Node day 2014
Trevor Norris
JavaSE7 Launch Event: Java7xGroovy
JavaSE7 Launch Event: Java7xGroovy
Yasuharu Nakano
What they don't tell you about JavaScript
What they don't tell you about JavaScript
Raphael Cruzeiro
Empfohlen
Full-Stack JavaScript with Node.js
Full-Stack JavaScript with Node.js
Michael Lehmann
Devcast node.js e mongo db o casamento perfeito
Devcast node.js e mongo db o casamento perfeito
Suissa
Bs webgl소모임004
Bs webgl소모임004
Seonki Paik
ネイティブ開発アンチパターン
ネイティブ開発アンチパターン
Yuki Tamura
Snow
Snow
Desarrollo Regional de la Educación
Node day 2014
Node day 2014
Trevor Norris
JavaSE7 Launch Event: Java7xGroovy
JavaSE7 Launch Event: Java7xGroovy
Yasuharu Nakano
What they don't tell you about JavaScript
What they don't tell you about JavaScript
Raphael Cruzeiro
Java data structures powered by Redis. Introduction to Redisson @ Redis Light...
Java data structures powered by Redis. Introduction to Redisson @ Redis Light...
Nikita Koksharov
Playing With Fire - An Introduction to Node.js
Playing With Fire - An Introduction to Node.js
Mike Hagedorn
Redis the better NoSQL
Redis the better NoSQL
OpenFest team
MongoDB
MongoDB
hyun soomyung
サイ本 文
サイ本 文
Takashi Takizawa
The State of JavaScript
The State of JavaScript
Domenic Denicola
RedisConf17 - Distributed Java Map Structures and Services with Redisson
RedisConf17 - Distributed Java Map Structures and Services with Redisson
Redis Labs
The jsdom
The jsdom
Domenic Denicola
W3C HTML5 KIG-How to write low garbage real-time javascript
W3C HTML5 KIG-How to write low garbage real-time javascript
Changhwan Yi
Ruby 2.0 at the Ruby drink-up of Sophia, February 2013
Ruby 2.0 at the Ruby drink-up of Sophia, February 2013
rivierarb
Tipo virus espia con esto aprenderan a espiar a personas etc jeropas de mrd :v
Tipo virus espia con esto aprenderan a espiar a personas etc jeropas de mrd :v
Arian Gutierrez
clonehd01
clonehd01
Luiz Francisco Bozo
Event Loop in Javascript
Event Loop in Javascript
DiptiGandhi4
The State of JavaScript (2015)
The State of JavaScript (2015)
Domenic Denicola
Orm
Orm
Cosmin Poieana
C SQLite usage
C SQLite usage
Chien-Wei Huang
Make the prompt great again
Make the prompt great again
jtyr
JavaScript - Agora nervoso
JavaScript - Agora nervoso
Luis Vendrame
RxJS 5 in Depth
RxJS 5 in Depth
C4Media
Openstack taskflow 簡介
Openstack taskflow 簡介
kao kuo-tung
What's New in JavaScript
What's New in JavaScript
Dan Cohn
Workshop 1: Good practices in JavaScript
Workshop 1: Good practices in JavaScript
Visual Engineering
Weitere ähnliche Inhalte
Was ist angesagt?
Java data structures powered by Redis. Introduction to Redisson @ Redis Light...
Java data structures powered by Redis. Introduction to Redisson @ Redis Light...
Nikita Koksharov
Playing With Fire - An Introduction to Node.js
Playing With Fire - An Introduction to Node.js
Mike Hagedorn
Redis the better NoSQL
Redis the better NoSQL
OpenFest team
MongoDB
MongoDB
hyun soomyung
サイ本 文
サイ本 文
Takashi Takizawa
The State of JavaScript
The State of JavaScript
Domenic Denicola
RedisConf17 - Distributed Java Map Structures and Services with Redisson
RedisConf17 - Distributed Java Map Structures and Services with Redisson
Redis Labs
The jsdom
The jsdom
Domenic Denicola
W3C HTML5 KIG-How to write low garbage real-time javascript
W3C HTML5 KIG-How to write low garbage real-time javascript
Changhwan Yi
Ruby 2.0 at the Ruby drink-up of Sophia, February 2013
Ruby 2.0 at the Ruby drink-up of Sophia, February 2013
rivierarb
Tipo virus espia con esto aprenderan a espiar a personas etc jeropas de mrd :v
Tipo virus espia con esto aprenderan a espiar a personas etc jeropas de mrd :v
Arian Gutierrez
clonehd01
clonehd01
Luiz Francisco Bozo
Event Loop in Javascript
Event Loop in Javascript
DiptiGandhi4
The State of JavaScript (2015)
The State of JavaScript (2015)
Domenic Denicola
Orm
Orm
Cosmin Poieana
C SQLite usage
C SQLite usage
Chien-Wei Huang
Make the prompt great again
Make the prompt great again
jtyr
JavaScript - Agora nervoso
JavaScript - Agora nervoso
Luis Vendrame
RxJS 5 in Depth
RxJS 5 in Depth
C4Media
Openstack taskflow 簡介
Openstack taskflow 簡介
kao kuo-tung
Was ist angesagt?
(20)
Java data structures powered by Redis. Introduction to Redisson @ Redis Light...
Java data structures powered by Redis. Introduction to Redisson @ Redis Light...
Playing With Fire - An Introduction to Node.js
Playing With Fire - An Introduction to Node.js
Redis the better NoSQL
Redis the better NoSQL
MongoDB
MongoDB
サイ本 文
サイ本 文
The State of JavaScript
The State of JavaScript
RedisConf17 - Distributed Java Map Structures and Services with Redisson
RedisConf17 - Distributed Java Map Structures and Services with Redisson
The jsdom
The jsdom
W3C HTML5 KIG-How to write low garbage real-time javascript
W3C HTML5 KIG-How to write low garbage real-time javascript
Ruby 2.0 at the Ruby drink-up of Sophia, February 2013
Ruby 2.0 at the Ruby drink-up of Sophia, February 2013
Tipo virus espia con esto aprenderan a espiar a personas etc jeropas de mrd :v
Tipo virus espia con esto aprenderan a espiar a personas etc jeropas de mrd :v
clonehd01
clonehd01
Event Loop in Javascript
Event Loop in Javascript
The State of JavaScript (2015)
The State of JavaScript (2015)
Orm
Orm
C SQLite usage
C SQLite usage
Make the prompt great again
Make the prompt great again
JavaScript - Agora nervoso
JavaScript - Agora nervoso
RxJS 5 in Depth
RxJS 5 in Depth
Openstack taskflow 簡介
Openstack taskflow 簡介
Ähnlich wie Memory leak in Javascript - Renan Bastos
What's New in JavaScript
What's New in JavaScript
Dan Cohn
Workshop 1: Good practices in JavaScript
Workshop 1: Good practices in JavaScript
Visual Engineering
Node.js System: The Landing
Node.js System: The Landing
Haci Murat Yaman
JavaScript 2016 for C# Developers
JavaScript 2016 for C# Developers
Rick Beerendonk
Yes, But
Yes, But
Erin Dees
PHP Static Code Review
PHP Static Code Review
Damien Seguy
Apache Commons - Don\'t re-invent the wheel
Apache Commons - Don\'t re-invent the wheel
tcurdt
CoffeeScript
CoffeeScript
Scott Leberknight
Terraform: начинайте использовать, если еще не.
Terraform: начинайте использовать, если еще не.
Serhii Vasylenko
Symfony & Javascript. Combining the best of two worlds
Symfony & Javascript. Combining the best of two worlds
Ignacio Martín
Node.js Event Loop & EventEmitter
Node.js Event Loop & EventEmitter
Simen Li
JavaScript for Web Analysts
JavaScript for Web Analysts
Lukáš Čech
Javascript do jeito certo
Javascript do jeito certo
Alexandre Gomes
Functional Reactive Programming with RxJS
Functional Reactive Programming with RxJS
stefanmayer13
The Ring programming language version 1.10 book - Part 70 of 212
The Ring programming language version 1.10 book - Part 70 of 212
Mahmoud Samir Fayed
Damn Fine CoffeeScript
Damn Fine CoffeeScript
niklal
2013-06-15 - Software Craftsmanship mit JavaScript
2013-06-15 - Software Craftsmanship mit JavaScript
Johannes Hoppe
2013-06-24 - Software Craftsmanship with JavaScript
2013-06-24 - Software Craftsmanship with JavaScript
Johannes Hoppe
Jakarta Commons - Don't re-invent the wheel
Jakarta Commons - Don't re-invent the wheel
tcurdt
JavaScript Growing Up
JavaScript Growing Up
David Padbury
Ähnlich wie Memory leak in Javascript - Renan Bastos
(20)
What's New in JavaScript
What's New in JavaScript
Workshop 1: Good practices in JavaScript
Workshop 1: Good practices in JavaScript
Node.js System: The Landing
Node.js System: The Landing
JavaScript 2016 for C# Developers
JavaScript 2016 for C# Developers
Yes, But
Yes, But
PHP Static Code Review
PHP Static Code Review
Apache Commons - Don\'t re-invent the wheel
Apache Commons - Don\'t re-invent the wheel
CoffeeScript
CoffeeScript
Terraform: начинайте использовать, если еще не.
Terraform: начинайте использовать, если еще не.
Symfony & Javascript. Combining the best of two worlds
Symfony & Javascript. Combining the best of two worlds
Node.js Event Loop & EventEmitter
Node.js Event Loop & EventEmitter
JavaScript for Web Analysts
JavaScript for Web Analysts
Javascript do jeito certo
Javascript do jeito certo
Functional Reactive Programming with RxJS
Functional Reactive Programming with RxJS
The Ring programming language version 1.10 book - Part 70 of 212
The Ring programming language version 1.10 book - Part 70 of 212
Damn Fine CoffeeScript
Damn Fine CoffeeScript
2013-06-15 - Software Craftsmanship mit JavaScript
2013-06-15 - Software Craftsmanship mit JavaScript
2013-06-24 - Software Craftsmanship with JavaScript
2013-06-24 - Software Craftsmanship with JavaScript
Jakarta Commons - Don't re-invent the wheel
Jakarta Commons - Don't re-invent the wheel
JavaScript Growing Up
JavaScript Growing Up
Mehr von Tchelinux
Do Zero ao YouTube em menos de 10 softwares livres - Vinícius Alves Hax - Tch...
Do Zero ao YouTube em menos de 10 softwares livres - Vinícius Alves Hax - Tch...
Tchelinux
Insegurança na Internet - Diego Luiz Silva da Costa - Tchelinux 2019 Rio Grande
Insegurança na Internet - Diego Luiz Silva da Costa - Tchelinux 2019 Rio Grande
Tchelinux
Explorando Editores de Texto Open Source - Gabriel Prestes Ritta - Tchelinux ...
Explorando Editores de Texto Open Source - Gabriel Prestes Ritta - Tchelinux ...
Tchelinux
Desenvolvendo Jogos com PyGame - Jerônimo Medina Madruga - Tchelinux 2019 Rio...
Desenvolvendo Jogos com PyGame - Jerônimo Medina Madruga - Tchelinux 2019 Rio...
Tchelinux
Me formei. E agora? - Matheus Cezar - Tchelinux 2019 Rio Grande
Me formei. E agora? - Matheus Cezar - Tchelinux 2019 Rio Grande
Tchelinux
APIs, REST e RESTful: O que os programadores precisam saber? - Marcos Echevar...
APIs, REST e RESTful: O que os programadores precisam saber? - Marcos Echevar...
Tchelinux
Shell Script: Seu melhor amigo na automatização de instalações e configuraçõe...
Shell Script: Seu melhor amigo na automatização de instalações e configuraçõe...
Tchelinux
WebRTC: Comunicação aberta em tempo real - Nelson Dutra Junior - Tchelinux 20...
WebRTC: Comunicação aberta em tempo real - Nelson Dutra Junior - Tchelinux 20...
Tchelinux
Introdução à programação funcional com Clojure - Victor Hechel Colares - Tche...
Introdução à programação funcional com Clojure - Victor Hechel Colares - Tche...
Tchelinux
Construindo um Data Warehouse - Vítor Resing Plentz - Tchelinux 2019 Rio Grande
Construindo um Data Warehouse - Vítor Resing Plentz - Tchelinux 2019 Rio Grande
Tchelinux
Bikeshedding - Márcio Josué Ramos Torres - Tchelinux 2019 Rio Grande
Bikeshedding - Márcio Josué Ramos Torres - Tchelinux 2019 Rio Grande
Tchelinux
Produção de textos com Latex - Samuel Francisco Ferrigo - Tchelinux Caxias do...
Produção de textos com Latex - Samuel Francisco Ferrigo - Tchelinux Caxias do...
Tchelinux
A tecnologia no futuro e nas mãos de quem ela estará - Jaqueline Trevizan, Ne...
A tecnologia no futuro e nas mãos de quem ela estará - Jaqueline Trevizan, Ne...
Tchelinux
oVirt uma solução de virtualização distribuída opensource - Daniel Lara - Tch...
oVirt uma solução de virtualização distribuída opensource - Daniel Lara - Tch...
Tchelinux
Sistemas Embarcados e Buildroot - Renato Severo - Tchelinux Caxias do Sul 2019
Sistemas Embarcados e Buildroot - Renato Severo - Tchelinux Caxias do Sul 2019
Tchelinux
Com que ônibus eu vou? Uma gentil introdução ao Python.
Com que ônibus eu vou? Uma gentil introdução ao Python.
Tchelinux
O TCC... um dia ele chega! (The beautiful and easy LaTeX way.
O TCC... um dia ele chega! (The beautiful and easy LaTeX way.
Tchelinux
Não deixe para testar depois o que você pode testar antes.
Não deixe para testar depois o que você pode testar antes.
Tchelinux
Desenvolvendo jogos com pygame
Desenvolvendo jogos com pygame
Tchelinux
Essa câmera faz fotos muito boas, né?
Essa câmera faz fotos muito boas, né?
Tchelinux
Mehr von Tchelinux
(20)
Do Zero ao YouTube em menos de 10 softwares livres - Vinícius Alves Hax - Tch...
Do Zero ao YouTube em menos de 10 softwares livres - Vinícius Alves Hax - Tch...
Insegurança na Internet - Diego Luiz Silva da Costa - Tchelinux 2019 Rio Grande
Insegurança na Internet - Diego Luiz Silva da Costa - Tchelinux 2019 Rio Grande
Explorando Editores de Texto Open Source - Gabriel Prestes Ritta - Tchelinux ...
Explorando Editores de Texto Open Source - Gabriel Prestes Ritta - Tchelinux ...
Desenvolvendo Jogos com PyGame - Jerônimo Medina Madruga - Tchelinux 2019 Rio...
Desenvolvendo Jogos com PyGame - Jerônimo Medina Madruga - Tchelinux 2019 Rio...
Me formei. E agora? - Matheus Cezar - Tchelinux 2019 Rio Grande
Me formei. E agora? - Matheus Cezar - Tchelinux 2019 Rio Grande
APIs, REST e RESTful: O que os programadores precisam saber? - Marcos Echevar...
APIs, REST e RESTful: O que os programadores precisam saber? - Marcos Echevar...
Shell Script: Seu melhor amigo na automatização de instalações e configuraçõe...
Shell Script: Seu melhor amigo na automatização de instalações e configuraçõe...
WebRTC: Comunicação aberta em tempo real - Nelson Dutra Junior - Tchelinux 20...
WebRTC: Comunicação aberta em tempo real - Nelson Dutra Junior - Tchelinux 20...
Introdução à programação funcional com Clojure - Victor Hechel Colares - Tche...
Introdução à programação funcional com Clojure - Victor Hechel Colares - Tche...
Construindo um Data Warehouse - Vítor Resing Plentz - Tchelinux 2019 Rio Grande
Construindo um Data Warehouse - Vítor Resing Plentz - Tchelinux 2019 Rio Grande
Bikeshedding - Márcio Josué Ramos Torres - Tchelinux 2019 Rio Grande
Bikeshedding - Márcio Josué Ramos Torres - Tchelinux 2019 Rio Grande
Produção de textos com Latex - Samuel Francisco Ferrigo - Tchelinux Caxias do...
Produção de textos com Latex - Samuel Francisco Ferrigo - Tchelinux Caxias do...
A tecnologia no futuro e nas mãos de quem ela estará - Jaqueline Trevizan, Ne...
A tecnologia no futuro e nas mãos de quem ela estará - Jaqueline Trevizan, Ne...
oVirt uma solução de virtualização distribuída opensource - Daniel Lara - Tch...
oVirt uma solução de virtualização distribuída opensource - Daniel Lara - Tch...
Sistemas Embarcados e Buildroot - Renato Severo - Tchelinux Caxias do Sul 2019
Sistemas Embarcados e Buildroot - Renato Severo - Tchelinux Caxias do Sul 2019
Com que ônibus eu vou? Uma gentil introdução ao Python.
Com que ônibus eu vou? Uma gentil introdução ao Python.
O TCC... um dia ele chega! (The beautiful and easy LaTeX way.
O TCC... um dia ele chega! (The beautiful and easy LaTeX way.
Não deixe para testar depois o que você pode testar antes.
Não deixe para testar depois o que você pode testar antes.
Desenvolvendo jogos com pygame
Desenvolvendo jogos com pygame
Essa câmera faz fotos muito boas, né?
Essa câmera faz fotos muito boas, né?
Kürzlich hochgeladen
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
Rustici Software
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
Remote DBA Services
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
Zilliz
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
Product Anonymous
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
The Digital Insurer
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
debabhi2
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Drew Madelung
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Edi Saputra
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
apidays
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Martijn de Jong
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
MIND CTI
presentation ICT roal in 21st century education
presentation ICT roal in 21st century education
jfdjdjcjdnsjd
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
sudhanshuwaghmare1
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
apidays
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
The Digital Insurer
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
MadyBayot
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
apidays
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
wesley chun
Kürzlich hochgeladen
(20)
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
presentation ICT roal in 21st century education
presentation ICT roal in 21st century education
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
Memory leak in Javascript - Renan Bastos
1.
Memory Leak in JavaScript
2.
Renan Bastos! Analista e
Desenvolvedor de Software na AZION TECHNOLOGIES @renanbastos93 2
3.
Memory Life cycle Tempo
de vida de cada alocação de memória. 💣
4.
“ Alocando memória 4 var num
= 25; var str = 'Renan'; var arr = [1, null, 'tree']; var obj = { k1: 1993, k2: null }; function fun(num) { return num + 2; } someElement.addEventListener('click', function() { someElement.style.backgroundColor = 'blue'; }, false);
5.
“ Referência de Memória 5 var
firstObject = { key: "value" }; var otherObject = firstObject; console.log(firstObject == otherObject); // TRUE
6.
Garbage Collector ◇ O
que é? ◇ Para que serve? ◇ Como funciona? 6
7.
Exemplo: 7 var someArray =
[]; function createSomeNodes() { var div; var frag = document.createDocumentFragment(); for (var i=100; i > 0; i--) { div = document.createElement("div"); div.appendChild(document.createTextNode(i + " - "+ new Date().toTimeString())); frag.appendChild(div); } document.getElementById("nodes").appendChild(frag); } function grow() { someArray.push(new Array(1000000).join('x')); createSomeNodes(); setTimeout(grow,1000); }
8.
Ilustrando o Memory
Leak 8
9.
9
10.
10
11.
Como evitar esse problema? ◇
Remover variável inutilizada ◇ Remover referência de memória 11
12.
Exemplo: 12 var firstObj =
{event: "TcheLinux"}; var letsGoEvent = firstObj; function appendRefInArray(){ for(var i=0; i<1000000; i++){ this["ref" + i] = Object.create(letsGoEvent); } console.log(this["ref0"] == this["ref1"]); console.log(firstObj == this["ref0"]); } letsGoEvent = null; firstObj.using = true; delete firstObj.using ;
13.
Referências https://auth0.com/blog/four-types-of-leaks-in-your-javascript-code-and-how-to-get-rid-of-them/ https://blog.sessionstack.com/how-javascript-works-memory-management-how-to-handle-4-common-memory-leaks-3f28b94cfbec https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management https://javascript.info/garbage-collection https://developers.google.com/web/tools/chrome-devtools/memory-problems/ 13
14.
Obrigado! Qualquer dúvida? Contate-me: ◇ @renanbastos93 ◇
renanbastos.tec@gmail.com 14
Jetzt herunterladen