Explore various optimization techniques to enhance code speed, especially in networking scenarios where processing packets efficiently is critical. Techniques covered include inline functions, compiler optimizations, advanced data structures like Swiss Tables, interleaved processing to reduce cache misses, and loop unrolling.

34m read timeFrom infoq.com
Post cover image
Table of contents
TranscriptOutline, and Background5G Packet ProcessingAttempt 0 - Start SimpleAttempt 1 - Inline FunctionsAttempt 2 - Let the Compiler Do the WorkAttempt 3 - Vector Instructions (AVX)Attempt 4 - Advanced Data StructuresAttempt 5 - Interleaved ProcessingAttempt 6 - Loop UnrollingTradeoffsWhat Can I Learn?Questions and Answers
1 Comment

Sort: