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.

Featured Partners

Related Articles

View all articles
S
SciChart
The Fastest JavaScript Charts - Built for React and Beyond
For most developers, browser charting works fine — until it doesn’t. Once you push beyond tens of thousands of points, add live streaming, or need advanced interactions, the story changes: frame drops, frozen dashboards, memory issues. That’s where S...
The Fastest JavaScript Charts - Built for React and Beyond
DC
Daniel Cranney
Exploring TypeScript: Benefits for Large-Scale JavaScript Projects
JavaScript is the backbone of web development, powering everything from small websites to large-scale enterprise applications. However, as projects grow in complexity, maintaining JavaScript code can become increasingly difficult. This is where TypeS...
Exploring TypeScript: Benefits for Large-Scale JavaScript Projects
DC
Daniel Cranney
Dev Digest 195: End of Likes, JavaScript’s a Zoo, and Messing with Bots!
Inside last week’s Dev Digest 195 . 👎 No more external likes 🤗 Needy programs 📉 The worst selling Microsoft product 🟨 JavaScript engines zoo 🍞 No more toasts! 🤖 Messing with bots 👔 Beware of fake job interviews 🗞️ Join over 150,000 developers alread...
Dev Digest 195: End of Likes, JavaScript’s a Zoo, and Messing with Bots!

From learning to earning

Jobs that call for the skills explored in this talk.

Rust and GoLang

Rust and GoLang

NHe4a GmbH
Karlsruhe, Germany

Remote
55-65K
Intermediate
Senior
Go
Rust
Creative Javascript

Creative Javascript

Thegiglab
Amsterdam, Netherlands

Intermediate
API
CSS
HTML
jQuery
Bootstrap
+1