Yonatan Kra

Yonatan Kra

Family, Code, Run

  • Blog
  • Planned Talks
  • About Me
  • Free Tech Blogging eBook!

Category: Memory

Home / Javascript / Memory

Measuring used JS heap size in nodejs

March 21, 2020August 10, 2021 Yonatan KraLeave a Comment on Measuring used JS heap size in nodejs

In the former article, we saw how to measure the JS heap in the browser and a few use cases it can come in handy. I was asked how this can be done in a nodejs app as well.

Let’s …

Read More

Measuring used JS heap size in the browser

March 20, 2020August 10, 2021 Yonatan KraLeave a Comment on Measuring used JS heap size in the browser

Part of the tools frontend developers have in their arsenal is the performance API. Part of it is the memory object. It can be used for various causes – from debugging performance through experimenting to performance budget monitoring.

A heap
…
Read More

Memory on a Diet

February 7, 2020August 10, 2021 Yonatan KraLeave a Comment on Memory on a Diet

In my last article, I talked about the flyweight design pattern. I mostly talked about how it can save you (and your end user) bandwidth.

I failed to mention the save on memory.

If we continue the example from …

Read More

Programming Complexity in JavaScript – not What You’d Expect

January 18, 2020August 10, 2021 Yonatan KraLeave a Comment on Programming Complexity in JavaScript – not What You’d Expect

I’ve recently given a talk about Design Patterns in JS at Javascript Israel. I’ve spoken about memory allocation in JS when I explained about the Object Pool design pattern.

After the talk several people came to ask questions …

Read More

Object Pool use case

January 15, 2020August 10, 2021 Yonatan KraLeave a Comment on Object Pool use case

After the Object Pool article went online, I was asked this on Facebook:

Benjamin Gruenbaum comment on my article. Benji is a nodejs contributor, among other cool things he’s doing.

What I take from here is 2 fold:

  1. The one
…
Read More

Improve Performance with Object Pool

January 10, 2020August 10, 2021 Yonatan KraLeave a Comment on Improve Performance with Object Pool

In a former article I’ve shown the consequences of memory allocation and garbage collection. Object pool is a simple design pattern that can be used in order to solve both problems.

The Problem

Memory allocation is a slow process. …

Read More

Memory Allocation and Garbage Collection in Javascript

January 2, 2020August 10, 2021 Yonatan KraLeave a Comment on Memory Allocation and Garbage Collection in Javascript
Memory Allocation
This is how we can allocate memory – by taking photos. This empty frame is ready to be filled with a memory. Photo by Rolands Zilvinskis on Unsplash

Javascript developers usually don’t care much about memory management. The JS engine …

Read More

I’m an instructor at:

Egghead.io

Follow me on

Sign up for my newsletter

Recent Posts

  • 2 Ways to Use Your Own Docker Image in Github Actions
  • How to Build a Chrome Extension that will Make Your Facebook Posts Better?
  • How to Create a Chrome Extension?
  • What is the Coupling Pitfall and how to Avoid it?
  • How to optimize JavaScript Performance?

Categories

  • Algorithms
  • Architecture
  • AskQL
  • Blogging
  • canvas
  • chrome extensions
  • CodeTalks 2019
  • Coding
  • Conferences
  • ConfrontJS
  • ConfrontJS 2019
  • Cypress
  • debugging
  • Design Patterns
  • devops
  • docker
  • Gaming
  • Github
  • github actions
  • GraphQL
  • Interview Questions
  • Javascript
  • javascript engine
  • Javascript Israel
  • jest
  • Memory
  • Meta Programming
  • Musings
  • nodejs
  • NPM
  • nx
  • Open Source
  • Performance
  • Playwright
  • Skills
  • Testing
  • typescript
  • Uncategorized
  • WarsawJS
  • Web Component
  • webpack
| beetech by Buzthemes.