Posts

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 the aforementioned blog post, let’s measure the memory consumption. A short reminder – the client code […]

Reducing Network Traffic with the Flyweight Design Pattern

Your users expect a fast and smooth experience. Sometimes what stands in the way is how long it takes to download data. The flyweight design pattern is a possible solution to help reduce bandwidth in your app.

Optimization Patterns in Javascript Talk

My talk (in Hebrew) at Javascript Israel about Optimization Patterns in Javascript is now online. Enjoy 🙂

Collecting Garbage in ConfrontJS

https://youtu.be/gLj-p7gHwj8

Programming Complexity in JavaScript – not What You’d Expect

How a followup chat with a meetup attendee helped me distill a javascript memory issue? Read more about memory allocation and garbage collection.

Object Pool use case

After the Object Pool article went online, I was asked this on Facebook: What I take from here is 2 fold: The one paragraph spent explaining about use cases might not be enough – we need an example that is somewhat like real life. From the article, it might seem that Object Pool is the […]

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.

Memory Allocation and Garbage Collection in Javascript

Javascript developers usually don’t care much about memory management. The JS engine does most of the heavy lifting for us. In this post I’m going to demonstrate how important it is to understand JavaScript memory management. Let’s take a look at an example: The two functions – buildArray and buildArray2 do the same thing. They […]

Publications on Github

I’ve just uploaded all of my publications to github. It was super easy using https://stackedit.io/. If you want to publish something with markdown, stackedit will make your life super easy. Oh – and here’s the link to my publications repository: https://github.com/YonatanKra/publications

ConfrontJS 2019

About a year and a half ago I spoke at fullstackon 2018 London. I just got off stage, and the first people to catch me were a bunch of guys who called themselves WarsawJS. Still light headed from my talk, I let them convince me to solve some JS riddle. I don’t really remember what […]

Type to search articles