Skip to content

HowProgrammingWorks/MemoryLeaks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memory Leaks

Утечки памяти, сборка мусора и профилирование

  • References
    • Global variables
    • Multiple References
    • Singleton
  • Closures / Scopes
    • Recursive closures
    • Require in the middle of code
    • Functions in loops
  • OS and Language Objects
    • Descriptors: files, sockets...
    • setTimeout, setInterval
  • Events / Sunscription
    • EventEmitter
    • Callbacks
  • Cache
    • Remove old values
    • Limit cache size
    • Remove rarely used values
  • Mixins
    • Mixin to built-in Classes
    • Mixins to DOM
    • Mixins to process, console, require
  • Concurrency
    • Processes
    • Threads
    • Workers

Memory

  • C++ Code
  • JavaScript Code
  • Stack
  • Heap
  • External