~/talk

JRuby File IO Using MMAP

Talkat JRubyConf EU 2015 · on Friday, 2015-07-31· [ruby]
slides:none on file

Title matches content: JRuby plus Java NIO, memory mapping and JNI-style JRuby extensions, with microbenchmarks and a persistent queue prototype. Claims and results are concrete: standard file I/O hits 680–900 MB/s, naive mmap via Java strings is slower, avoiding implicit conversions with explicit unsafe byte access raises throughput to 5–7 GB/s, and the mmap-backed persistent queue prototype achieves about 100 MB/s (peaks ~500 MB/s for pure writes). Code uses JRuby String getByteList, Java ByteBuffer mmap, a page cache and a dual in‑memory/persistent queue.

AI-written summary · about

  1. 0:00Start
  2. 1:50Data in Ruby
  3. 2:53Ruby String Encoding
  4. 4:28Java String Encoding
  5. 5:53Object Persistence
  6. 7:44Strings Persistence
  7. 8:34Motivation.logstash pipeline
  8. 10:27Raw IO Performance
  9. 10:55Strategies
  10. 12:53Standard Ruby File IO
  11. 14:51mmap IO advantages
  12. 18:29mmap - Java class, implicit casting, default charsets
  13. 20:26mmap - Java class, implicit casting, ISO 8859-1 charset
  14. 21:11mmap - Java class, explicit Ruby-side casting
  15. 22:13mmap - Java class, explicit Java-side casting
  16. 24:36mmap - Java JRuby extension, unsafe bytes
  17. 29:48Persistent Queues Benchmarks
  18. 30:53Persistent SizedQueue /PageCache
  19. 31:29Persistent SizedQueue / SinglePage
  20. 32:09Persistent Queue Read/Write
  21. 32:25Persistent Queue Write then Read
  22. 33:20Elephant in the Room
~/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.