~/talk

High Performance Template Engine: Guide to optimize your Ruby code

Talkat RubyKaigi 2015 · 2015-12-11..12-13· [ruby]
links:none on file
slides:none on file

Built two faster Haml engines, Faml and Hamlit, by measuring with benchmark-ips and profiling with stackprof / rblineprof; attribute handling is classified into static, dynamic, and runtime so static HTML can be emitted at compile time. Hot paths get rewritten as C extensions, giving roughly 2x rendering speed in Faml and up to ~18x faster compile-time behavior for Hamlit on some benchmarks after removing expensive features (data-attr hyphenation, boolean attr handling).

AI-written summary · about

  1. 0:00Introduction
  2. 4:44Optimizing Ruby code
  3. 7:51Profiling and benchmarking
  4. 10:02Creating Faml template engine
  5. 18:53Building Hamlitt
  6. 24:29Removing unnecessary features
  7. 31:04Conclusion and Q&A
~/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.