~/talk

Turbo Charge CPU Utilization in Fork/Join Using the ManagedBlocker

Talkat JDD 2017 · 2017-10-03..10-04· [concurrency, java]
links:none on file
slides:none on file

Shows that a faster algorithm (fast doubling for Fibonacci) turns an intractable computation into milliseconds, then that naive Fork/Join parallelism stalls (single-threaded tail work -> ~22s). Replacing BigInteger internals and parallelizing multiplication yields ~18.5s, adding a ConcurrentHashMap cache with putIfAbsent placeholder cuts to ~9.4s, and a reserved caching scheme plus a ManagedBlocker that lets ForkJoinPool spawn extra workers drops it to ~6.9s. Also demonstrates bootclasspath patching to use a hacked BigInteger.

AI-written summary · about

  1. 0:00Start
  2. 1:32Speeding Up Fibonacci
  3. 2:25Naive Implementation
  4. 4:163º Attempt Dijkstra's Sum of Squares
  5. 11:00Parallelize Our Algorithm
  6. 22:03Parallelize BigInteger
  7. 34:40Cache Results
  8. 45:29ManagedBlocker
  9. 50:45CompletableFuture (Homework)
  10. 51:23Refactoring to Java 8 Streams Workshop
~/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.