Fabian Untermoser

Recent Notes

  • OKR

    May 22, 2025

  • JPA

    May 21, 2025

  • EAS

    May 13, 2025

  • Maestro

    May 12, 2025

  • SolarAssets

    Apr 25, 2025

See 333 more →

Home

❯

notes

❯

dev

❯

Javascript Performance

Apr 25, 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


Recent Notes

  • OKR

    May 22, 2025

    • goals
    • book
  • JPA

    May 21, 2025

    • EAS

      May 13, 2025

      Graph View

      Backlinks

      • Javascript

      Created with Quartz v4.4.0 © 2025

      • Contact
      • Twitter
      • LinkedIn
      • GitLab
      • GitHub