~/talk

CS101 Intro to Computational Complexity: The Sorting Problem

Talkat jsDay 2017 · 2017-05-10..05-11· [javascript, web-performance]
slides:none on file

Browser engines implement different algorithms: merge sort + insertion sort in SpiderMonkey, V8 uses quicksort with insertion sort for small arrays, Chakra also favors quicksort. Native Array#sort is not guaranteed stable and often compares as strings. Benchmarks on the presenter’s machine show insertion sort faster than native up to ~1,000 items, quicksort beating native from ~100,000 onward, insertion freezing at 1,000,000, and JS-hosted implementations yielding measurable speed differences.

AI-written summary · about

  1. 0:00Start
  2. 1:16Array#sort in JS
  3. 9:23Insertion Sort
  4. 11:40Performance
  5. 12:05Merge Sort
  6. 15:03Quick Sort
  7. 22:0410,000,000 elements
  8. 22:41Certificate of Excellence
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.