CppCon 2016: Timur Doumler “Want fast C++? Know your hardware!"

CppCon October 2, 2016
Video Thumbnail
CppCon Logo

CppCon

@cppcon

About

Visit cppcon.org for details on next year's conference. CppCon sponsors have made it possible to record and freely distribute over 1000 sessions from the first CppCon in 2014 to the present. We hope you enjoy them!

Video Description

http://CppCon.org — Presentation Slides, PDFs, Source Code and other presenter materials are available at: https://github.com/cppcon/cppcon2016 — As C++ evolves, it provides us with better and more powerful tools for optimal performance. But often, knowing the language very well is not enough. It is just as important to know your hardware. Modern computer architectures have many properties that can impact the performance of C++ code, such as cache locality, cache associativity, true and false sharing between cores, memory alignment, the branch predictor, the instruction pipeline, denormals, and SIMD. In this talk, I will give an overview over these properties, using C++ code. I will present a series of code examples, highlighting different effects, and benchmark their performance on different machines with different compilers, sometimes with surprising results. The talk will draw a picture of what every C++ developer needs to know about hardware architecture, provide guidelines on how to write modern C++ code that is cache-friendly, pipeline-friendly, and well-vectorisable, and highlight what to look for when profiling it. — Timur Doumler ROLI Ltd. JUCE Senior Software Engineer London, UK Timur Doumler is Senior Software Developer at London-based technology company ROLI. He is currently working on JUCE, the leading cross-platform framework for creating audio applications used by hundreds of companies in the audio industry. After five years of writing high-performance code in Fortran, C, and C++ for numerical simulations of the cosmic structure formation, Timur became committed to audio and music production software. Before joining ROLI, he worked on various projects at market-leading company Native Instruments, such as KONTAKT, the industry standard sampling platform used by the majority of music producers and composers for film score, games, and contemporary popular music. Timur holds a PhD in astrophysics and is passionate about well-written code, modern C++ techniques, science-fiction, learning languages, and progressive rock music. — Videos Filmed & Edited by Bash Films: http://www.BashFilms.com *-----* Register Now For CppCon 2022: https://cppcon.org/registration/ *-----*

You May Also Like

Transform Your Space Today

AI-recommended products based on this video

Loading...
RoboSeal Rechargeable Mason Jar Vacuum Sealer for Mason Jars Wide and Regular, One Touch Vacuum Sealer for Jars, 10 Lids Included, Digital Battery Indicator, As Seen on TV

RoboSeal Rechargeable Mason Jar Vacuum Sealer for Mason Jars Wide and Regular, One Touch Vacuum Sealer for Jars, 10 Lids Included, Digital Battery Indicator, As Seen on TV

(190)
$36.09
Prime
2K+ bought in past month
Loading...
Environet Hydroponic Growing Kit, Self-Watering Mason Jar Herb Garden Starter Kit Indoor, Windowsill Herb Garden, Grow Your Own Herbs from Organic Seeds (Basil)

Environet Hydroponic Growing Kit, Self-Watering Mason Jar Herb Garden Starter Kit Indoor, Windowsill Herb Garden, Grow Your Own Herbs from Organic Seeds (Basil)

(786)
$69.15$33.51
FREE delivery Jun 13 - 17
Loading...
VASAGLE EKHO Collection - Bench for Entryway Bedroom, Synthetic Leather with Stitching, Ottoman Bench with Steel Legs, Living Dining Room, Mid-Century Modern, Loads 660 lb, Forest Green ULOM076C01

VASAGLE EKHO Collection - Bench for Entryway Bedroom, Synthetic Leather with Stitching, Ottoman Bench with Steel Legs, Living Dining Room, Mid-Century Modern, Loads 660 lb, Forest Green ULOM076C01

(247)
$129.99
FREE delivery Jun 20 - 30
Loading...
VASAGLE EKHO Collection - Storage Ottoman Bench, Entryway Bedroom Bench, 25 Gallons, Synthetic Leather with Stitching, Mid-Century Modern, Safety Hinges, Loads 660 lb, Forest Green ULOM075C01

VASAGLE EKHO Collection - Storage Ottoman Bench, Entryway Bedroom Bench, 25 Gallons, Synthetic Leather with Stitching, Mid-Century Modern, Safety Hinges, Loads 660 lb, Forest Green ULOM075C01

(238)
$169.99
Loading...
VASAGLE EKHO Collection - Storage Ottoman Bench, Entryway Bedroom Bench, 15 Gallons, Synthetic Leather with Stitching, Mid-Century Modern, Safety Hinges, Loads 660 lb, Caramel Brown ULOM074K01

VASAGLE EKHO Collection - Storage Ottoman Bench, Entryway Bedroom Bench, 15 Gallons, Synthetic Leather with Stitching, Mid-Century Modern, Safety Hinges, Loads 660 lb, Caramel Brown ULOM074K01

(229)
$514.48
FREE delivery Jul 7 - 25
Loading...
VASAGLE EKHO Collection - Shoe Bench, Storage Bench, Shoe Rack Bench Entryway, Synthetic Leather with Stitching, Mid-Century Modern, Loads 135 kg, 30 x 80 x 50 cm, Ink Black ULSB054B01

VASAGLE EKHO Collection - Shoe Bench, Storage Bench, Shoe Rack Bench Entryway, Synthetic Leather with Stitching, Mid-Century Modern, Loads 135 kg, 30 x 80 x 50 cm, Ink Black ULSB054B01

(377)
$55.08
FREE delivery Jun 20 - 30
Loading...
LEGO Icons Bonsai Tree Building Set - Artificial Bonsai Tree Plants for Home Decor, Adults Ages 18+ - Faux, Fake Plants for Table, Desk, Office - Birthday Gift for Men & Women - 10281

LEGO Icons Bonsai Tree Building Set - Artificial Bonsai Tree Plants for Home Decor, Adults Ages 18+ - Faux, Fake Plants for Table, Desk, Office - Birthday Gift for Men & Women - 10281

(22,441)
$59.99
PrimeFREE delivery Sat, Jun 14
600+ bought in past month
Loading...
Command Medium Picture Hanging Strips [Removable]: 12 Pairs (White)

Command Medium Picture Hanging Strips [Removable]: 12 Pairs (White)

(23,669)
$10.38
FREE delivery Mon, Sep 15 on your first order
5K+ bought in past month
Loading...
9 Herb Indoor Window Garden Kit - House Plants Seeds - Best Unique Gift Ideas for Women, Mom, Friend, Her, Birthday, Housewarming, Mother - New Home Kitchen Gifts - Live Plant Starter (Burlap Pots)

9 Herb Indoor Window Garden Kit - House Plants Seeds - Best Unique Gift Ideas for Women, Mom, Friend, Her, Birthday, Housewarming, Mother - New Home Kitchen Gifts - Live Plant Starter (Burlap Pots)

(1,917)
$35.99
PrimeFREE delivery Sat, Jun 14
500+ bought in past month
Loading...
TOPTHY Perfume Travel Spray Bottle Atomizer - 5ML Atomizer Perfume Bottle, Scent Pump Case, Luxury Leakproof Refillable Perfume Spray Bottle for Women and Men(Champagne Gold)

TOPTHY Perfume Travel Spray Bottle Atomizer - 5ML Atomizer Perfume Bottle, Scent Pump Case, Luxury Leakproof Refillable Perfume Spray Bottle for Women and Men(Champagne Gold)

(30)
$8.99
FREE delivery Sat, Jun 14 on your first order
Loading...
100FT Garden Hose - 2025 New Version Expandable Garden Hose with 10 Function Spray Nozzle, 3/4" Brass Fittings and 4-Layer Latex Core, Lightweight, Durable, No-Kink Flexible Water Hoses (Black Gold)

100FT Garden Hose - 2025 New Version Expandable Garden Hose with 10 Function Spray Nozzle, 3/4" Brass Fittings and 4-Layer Latex Core, Lightweight, Durable, No-Kink Flexible Water Hoses (Black Gold)

(132)
$53.95
FREE delivery Sun, Jun 22
1K+ bought in past month
Loading...
50FT Garden Hose - 2025 New Version Expandable Garden Hose with 10 Function Spray Nozzle, 3/4" Brass Fittings and 4-Layer Latex Core, Lightweight, Durable, No-Kink Flexible Water Hoses (Black Gold)

50FT Garden Hose - 2025 New Version Expandable Garden Hose with 10 Function Spray Nozzle, 3/4" Brass Fittings and 4-Layer Latex Core, Lightweight, Durable, No-Kink Flexible Water Hoses (Black Gold)

(112)
$33.95
FREE delivery Sun, Jun 15 on your first order
2K+ bought in past month
Loading...
Magnetic Nasal Strips Starter Kit: Comfortable Nasal Breathing Support for Sleep, Helps Reduce Snoring Noise, Includes 60 Tabs (30 Uses) with 4 Sizes

Magnetic Nasal Strips Starter Kit: Comfortable Nasal Breathing Support for Sleep, Helps Reduce Snoring Noise, Includes 60 Tabs (30 Uses) with 4 Sizes

(40)
$17.99
FREE delivery Wed, Mar 18 on your first orderOnly 7 left in stock.
1K+ bought in past month
Loading...
Magnetic Nasal Strips for Breathing and Anti-Snoring, Skin-Friendly Design for Men and Women (30 pairs)

Magnetic Nasal Strips for Breathing and Anti-Snoring, Skin-Friendly Design for Men and Women (30 pairs)

(112)
$12.28
FREE delivery Thu, Nov 6 on your first order
300+ bought in past month
Loading...
Magnetic Nasal Strips for Breathing and Anti-Snoring, Skin-Friendly Design for Men and Women (30 pairs) 1-3

Magnetic Nasal Strips for Breathing and Anti-Snoring, Skin-Friendly Design for Men and Women (30 pairs) 1-3

(9,124)
$13.50
FREE delivery Tue, Aug 19 on your first order
Loading...
Nasal Strips for Snoring - Magnetic Nose Strip (30 Count) Innovative Magnetic Design for Sports and Sleep, Helping You Breathe Better

Nasal Strips for Snoring - Magnetic Nose Strip (30 Count) Innovative Magnetic Design for Sports and Sleep, Helping You Breathe Better

(7)
$19.99
FREE delivery Sat, Sep 13 on your first order