!!Con West 2019 - Jeroen (Jerry) Van Leeuwen: Fast code! By removing all branches!

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=GDtZra7pi9I



Duration: 10:36
45 views
1


Presented at !!Con West 2019: http://bangbangcon.com/west

Performance optimization should never be your first concern when creating a solution, and run-time code generation is always a measure of last resort.

But when I was faced with the seemingly insurmountable task of making .NET 2.0 serialization as fast as hand-tuned assembly in a Delphi framework, it was time to break all rules and resort to the dirtiest of tricks to make the impossible possible.

In this talk I will illustrate how I used run-time code generation, elimination of conditional branches, and some dangerous assumptions to beat an already blazing fast solution to the finish.




Other Videos By Confreaks


2022-07-05!!Con West 2019 - Tom Verbeure: World’s 1st racing-the-beam ray tracer on discarded FPGA hardware!!!
2022-07-05!!Con West 2019 - Michael Knowles: Hacking Lego! Computer generated Lego instructions!
2022-07-05!!Con West 2019 - Annie Cherkaev: The secret life of Not-a-Number!
2022-07-05!!Con West 2019 - Simon Porter: Guiding a starship with noise! And blinking!
2022-07-05!!Con West 2019 - VJ Um Amel: Glitch Nuggets of Resistance!
2022-07-05!!Con West 2019 - Arshia Mufti: How DNS doesn’t work!
2022-07-05!!Con West 2019 - Nick Piesco: This 1 simple 600-year-old trick makes your website more accessible!
2022-07-05!!Con West 2019 - Ori Bernstein: That’s hot!
2022-07-05!!Con West 2019 - Michael Malis: Generating fractals … with SQL queries!!!
2022-07-05!!Con West 2019 - Max Kreminski: Making blackout poetry with computers!
2022-07-05!!Con West 2019 - Jeroen (Jerry) Van Leeuwen: Fast code! By removing all branches!
2022-07-05!!Con West 2019 - Molly Lloyd: Everything the light touches is a triangle: how computers draw!
2022-07-05!!Con West 2019 - Katharine Berry: Keeping abandoned watches ticking!
2022-07-05!!Con West 2019 - Eric Fischer: if … then … else had to be invented!
2022-07-05!!Con West 2019 - Misty de Méo: Let’s translate old video games! How do they even work?!
2022-07-05!!Con West 2019 - Tobias Bieniek: How do you tell folks what’s going on from a plane w/no engine?!
2022-07-05!!Con West 2019 - Michael Albaugh: “Wheels within whiles!” or possibly “Whiles within wheels!”
2022-07-05!!Con West 2019 - Breanne Boland: /etc/services is made of people! (and also ports!)
2022-07-05!!Con West 2019 - Alex Rasmussen: EarthBound’s almost-Turing-complete text system!
2022-07-05!!Con West 2019 - Jennifer Wang: IMUs FTW!! Building IMU-based gesture recognition!
2022-07-05!!Con West 2019 - Lynn Cyrin: The Best Parts! Of My Favorite Things!