# #23: Garbage collection

> Episode of [Around IT in 256 seconds](https://podistic.com/podcast/around-it-in-256-seconds.md) · Published November 30, 2020 · Duration 4:15 · Episode 23, season 1

- **Listen on Podistic:** https://podistic.com/episode/23-garbage-collection
- **Audio:** https://anchor.fm/s/155e7134/podcast/play/23319958/https%3A%2F%2Fd3ctxlq1ktw2nl.cloudfront.net%2Fstaging%2F2020-10-30%2Ff00ea67a-21ee-d67f-6056-ab867eaa0fe2.mp3 (audio/mpeg)

## About this episode

Creating new objects, arrays or strings is so straightforward that we often forget what happens underneath. And I don’t mean trying to figure out what `this` refers to in JavaScript objects. I mean: memory management. On each request we create a ton of objects. A server can easily allocate hundreds of megabytes of memory. Per second. Memory is cheap and there’s a lot of it. But it’s not infinite. How come we can simply call `new Object()` over and over again, taking more and more memory from our computer? Many objects are no longer needed a few milliseconds after they’re created. What happens to the memory they occupy? We take for granted what was thought to be almost impossible: automatic memory management.

**Read more: [https://256.nurkiewicz.com/23](https://256.nurkiewicz.com/23)**

**Get the new episode straight to your mailbox: [https://256.nurkiewicz.com/newsletter](https://256.nurkiewicz.com/newsletter)**
