Fabian
Untermoser

Freelance Fullstack Developer · MSc

Available for work

Recent Notes

  • Freelance Fullstack Developer

    May 31, 2026

  • Latex

    May 31, 2026

  • Contact

    May 31, 2026

  • Hyprland

    May 31, 2026

  • ChainDon

    May 31, 2026

See 423 more →

Home

❯

notes

❯

dev

❯

Javascript Performance

Mar 08, 20251 min read

Javascript Performance

Data Structures

  • Prefer sorted array for O(n log n).

Engine Optimizations

Slow (HashTable):

{
    '1': 10,
    '2': 20,
    '3': 30,
}

Faster (Array):

{
    '0': 10,
    '1': 20,
    '2': 30,
}

Changing the index to ‘0’ is faster because the array implementation is faster than HashTable.

Source: Fast By Default: Algorithmic Performance Optimization in Practice


Chatonline
Hey, I'm Fabian 👋 Ask about my work, stack, or how I can help with your project.

Recent Notes

  • Freelance Fullstack Developer

    May 31, 2026

    • Latex

      May 31, 2026

      • Contact

        May 31, 2026

        Graph View

        Backlinks

        • Javascript

        Created with Quartz v4.5.2 © 2026

        • Contact
        • LinkedIn
        • GitHub
        • GitLab