~/talk

So you'd like to import a CSV File...

Talkat Meeting C++ 2023 · 2023-11-12..11-14· [data-visualization]
slides:none on file

Code for importing EventBrite CSVs with standard C++ and Qt reads lines with std::getline and parses by character into std::string_view to avoid copies, then converts to QString only when inserting new attendees; this importer works and speeds up import. Surprises: IDs in the billions and the export order CSV not sorted so never assume ordering. Big gotcha: QString::fromUtf8 always allocates, so deferring conversion and keeping a preloaded attendee set avoids most allocations.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06CSV import in C++
  3. 3:16CSV file problems
  4. 5:36Event backend overview
  5. 9:32CSV format assumptions
  6. 13:06Quotes and newlines challenges
  7. 16:32Reading CSV line by char
  8. 17:34Processing headers and fields
  9. 19:23Verifying data ordering
  10. 21:30Investigating unsorted data
  11. 24:00String conversions in C++
  12. 26:10Optimizing Q string allocations
  13. 29:01Q string conversion alternatives
  14. 31:48Q string decoder and UTF-8
  15. 33:17Final optimizations
  16. 35:07Order data and invoice issues
  17. 37:40Invoice management lessons
  18. 38:42Key takeaways on strings
  19. 40:10Large numeric IDs in CSV
  20. 41:55Future C++ and Qt improvements
  21. 43:25Q&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.