~/talk

Range-based text formatting

Talkat Meeting C++ 2018 · 2018-11-15..11-17· [rust]
links:none on file
slides:none on file

Range-based formatting uses range-v3 style pipelines and a homegrown ranges library (on GitHub under Boost license with 1 million lines of production use) to build lazy concat/formatter expression trees that expose size up front, supply a custom internal iteration entry (function-call operator), and provide appender sinks with a chunk-based reserve hook. Benchmarks show iterator-based concat hits ~50% overhead, internal-iteration cuts that to ~15% above handwritten code, and a custom appender saves ~20% versus std::push_back, yielding performance competitive with hand-tuned formatting.

AI-written summary · about

  1. 0:00Intro
  2. 1:07Syntax Options
  3. 2:04Format Strings: Cons
  4. 5:36Format Strings: 18N
  5. 10:55Introduction to Ranges
  6. 11:57Essence of Ranges
  7. 14:21Ranges for Text 101: Replace basic string Member Functions by Range Algorithms
  8. 15:49Ranges for Text Formatting (1)
  9. 17:41Formatting into Containers (3)
  10. 22:26Avoid Heap Allocation For Components
  11. 24:41Fast Formatting into Containers
  12. 28:20Better reserve
  13. 29:00Iterators Cost Performance
  14. 30:54External iteration (2)
  15. 33:10Extend Range Concept to Internal Iteration
  16. 35:42Appender Customization Point
  17. 38:59Performance: Appender vs Hand-Written
  18. 42:14Performance: Custom vs Standard Appender
  19. 44:40Performance: Future Work
  20. 46:46Conclusion
~/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.