~/talk

Bending Time with Crystal: 6 hours to 15 minutes

Talkat RubyConf 2022 · 2022-11-29..12-01· [ruby]
speakerdeck:phoffer
slides:none on file

A Rails sitemap job that takes 6 hours for 18 million links becomes a 15 minute process after porting the generator to Crystal using site_mapper and Jennifer, with only about 185 lines of new code and a working prototype in two days. The team finds and fixes a memory issue by changing the shard to stream and write sitemap files as it goes, submits a PR that gets merged, and shows the approach is practical and dramatically faster with minimal porting effort 6 hours to 15 minutes

AI-written summary · about

  1. 0:00Start
  2. 1:03What is The RealReal?
  3. 2:10Introduction to Crystal
  4. 2:50Sample Crystal
  5. 4:01Crystal Ecosystem
  6. 6:02Sitemap generation for TheRealReal
  7. 6:29What makes it so difficult?
  8. 13:52Ruby Sitemap Generation
  9. 15:26First Step-Database Modeling
  10. 17:52Next step - Generation code
  11. 18:34Crystal Sitemap Generation
  12. 24:05Recapping the creative process
~/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.