Michele Riva

Things I learned while writing high-performance JavaScript applications

We built a full-text search engine in JavaScript that rivals Rust's performance. Here's how we did it using four key principles.

Things I learned while writing high-performance JavaScript applications
#1about 5 minutes

The four pillars of high-performance JavaScript

JavaScript can be as fast as lower-level languages by focusing on four key areas: algorithms, dependencies, optimizations, and architecture.

#2about 5 minutes

The importance of algorithms and data structures

Learning algorithms should be driven by practical goals like side projects, not just passing interviews at large tech companies.

#3about 4 minutes

Managing dependencies for better performance

Categorize dependencies as inevitable, convenient, or empowering to avoid unnecessary overhead from general-purpose libraries like Lodash.

#4about 6 minutes

Optimizing code by understanding the V8 runtime

Write faster code by using imperative programming, understanding V8 engine features like TurboFan, and using monomorphic functions.

#5about 4 minutes

How software architecture impacts performance

Performance strategies must adapt to the execution environment, such as browsers, servers, or constrained nano services like Cloudflare Workers.

#6about 2 minutes

Balancing performance metrics beyond raw speed

Consider performance trade-offs between raw execution speed, iteration speed for development, and team onboarding efficiency.

#7about 2 minutes

Q&A on TypeScript, clean code, and algorithms

The speaker answers audience questions about using TypeScript without performance penalties, the trade-offs of "dirty" code, and Dijkstra's algorithm.

Related jobs
Jobs that call for the skills explored in this talk.

job ad

Saby Company
Delebio, Italy

Intermediate

test

Milly
Vienna, Austria

Intermediate

Featured Partners

Related Articles

View all articles
LM
Luis Minvielle
The Best JavaScript Framework to Learn
When the Greek mastermind Heraclitus, millennia ago, claimed that “the only constant is change,” he certainly pepped up Star Wars creator George Lucas to perpetually re-do shots crucial to the canon storyline or even paved the way for grocery stores ...
The Best JavaScript Framework to Learn
CH
Chris Heilmann
Dev Digest 136 - No JS(on) of mine
News and ArticlesDouglas Crockford is our featured video, so let's talk about evolving JavaScript and all things JSON. Judicious JSON explains all the weird things in it, you can learn why it can be incredibly slow, people wonder what even is a JSON ...
Dev Digest 136 - No JS(on) of mine
CH
Chris Heilmann
All the videos of Halfstack London 2024!
Last month was Halfstack London, a conference about the web, JavaScript and half a dozen other things. We were there to deliver a talk, but also to record all the sessions and we're happy to share them with you. It took a bit as we had to wait for th...
All the videos of Halfstack London 2024!
LM
Luis Minvielle
The Best Upcoming IT Webinars
Now that you already know what IT webinars are and how they can help you level up your professional appeal, you might want actually to get into one. Live tech webinars are one of the best ways to stay on top of the latest trends and tools because eit...
The Best Upcoming IT Webinars

From learning to earning

Jobs that call for the skills explored in this talk.