Yonatan Kra

Yonatan Kra

Family, Code, Run

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

Tag: performance

Home / performance

Yet another interview question deep dive: Intersection of Two Arrays

October 6, 2021 Yonatan Kra2 Comments on Yet another interview question deep dive: Intersection of Two Arrays

Can we learn something practical from a pure computer science interview question? In this article we will solve an interview question and optimize it – but we will also look at a practical way to handle data in real life.…

Read More

How to find a unique number in a list containing pairs?

October 3, 2021October 7, 2021 Yonatan Kra3 Comments on How to find a unique number in a list containing pairs?

Finding a single unique number in a list containing pairs might sound pretty simple, right?

Because a one-sentence description might be misleading, let’s start with an example of an input array:

[1,3,17,3,1]

Given such an array, the unique number is …

Read More

Deep dive into an interview question: Array Nesting

September 2, 2021December 9, 2021 Yonatan KraLeave a Comment on Deep dive into an interview question: Array Nesting

The Array Nesting interview question might seem complex at first and very simple after you solve it. But sometimes, a deeper dive into it can expose some more performance optimizations that can be interesting. After this article, you’ll be able …

Read More

This is how I helped YouTube improve performance with a simple JavaScript trick

November 17, 2020August 10, 2021 Yonatan KraLeave a Comment on This is how I helped YouTube improve performance with a simple JavaScript trick

Google’s Material Web Components had a performance issue and I thought I could help. The results: 90% performance improvement in big lists removal. Here’s how I did it, and how you can duplicate it in your application.

“Look Ma! My
…
Read More

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

What is a Forced Reflow and How to Solve it?

March 11, 2020August 10, 2021 Yonatan KraLeave a Comment on What is a Forced Reflow and How to Solve it?

Force reflow (or Layout Reflow) is a major performance bottleneck. It happens when a measurement of the DOM happens after a DOM mutation. With this knowledge, I was able to improve performance of an app in my workplace by 75%. …

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

Optimization Patterns in Javascript Talk

January 22, 2020August 10, 2021 Yonatan KraLeave a Comment on Optimization Patterns in Javascript Talk

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

They caught me at my geek joke!
…
Read More

Collecting Garbage in ConfrontJS

January 21, 2020August 10, 2021 Yonatan KraLeave a Comment on Collecting Garbage in ConfrontJS

My video from confrontJS about reducing garbage collection with the Object Pool design pattern is now live on YouTube!

…
Read More

Posts navigation

1 2 Next

I’m an instructor at:

Egghead.io

Follow me on

Sign up for my newsletter

Recent Posts

  • Live Coding an Open Source Feature
  • How to Use Github Actions Self-Hosted Runners?
  • How to Build a Vivid Birthday Quiz in 20 minutes?
  • The One Trick to Writing Effective Tests
  • 3 Simple Habits to Improve Your Tests

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
  • vivid
  • WarsawJS
  • Web Component
  • webpack
| beetech by Buzthemes.