~/talk

ArrayDeques and How to Contribute to Scala 2.13

Talkat Scale By The Bay 2018 · 2018-11-15..11-17· [scala]
slides:none on file

mutable.ArrayDeque is a circular-buffer implementation that replaces many mutable Scala collections and claims faster common operations than Lists, Buffers, Stacks and Queues. It provides constant-time random access plus O(1) prepend/append/delete by keeping start/end indices and using modular arithmetic (with a power-of-two bitmask optimization). Resizing moves blocks via array.copy/memcpy (2–3 memcopies), supports clear vs clear-and-shrink to avoid GC leaks, and shows benchmarks where most ops win while random-indexing pays a small bitwise cost. Contributions welcome.

AI-written summary · about

  1. 0:00Start
  2. 3:23Array Decks
  3. 4:00Data Structures 101
  4. 7:38Implementation of an Array Attack
  5. 8:04How Do I Insert an Element at the Ayat'index
  6. 12:13Demo
  7. 20:47Benchmarks
~/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.