Get the latest tech news
Wild performance tricks
Last week I had the pleasure of attending RustForge in Wellington, New Zealand. I gave a talk titled “Wild performance tricks”.
This works in a very similar way to how we converted between atomic and non-atomic SymbolId s, except this time because we first clear the Vec, the body of our map function is unreachable. The optimisation in the Rust standard library that allows reuse of the heap allocation will only actually work if the size and alignment of T and U are the same, so let’s verify that that’s the case. CodeursenLiberte Urgau pmarks repi embark-studios mati865 bes joshtriplett mstange bcmyers Rafferty97 acshi Kobzol flba-eb jonhoo marxin tommythorn binarybana teburd bearcove yerke teh twilco Shnatsel coastalwhite wezm davidcornu gendx rrbutani nazar-pc willstott101 tatsuya6502 teohhanhui jkendall327 EdorianDark drmason13 HadrienG2 jplatte rukai ymgyt dream-dasher alexkirsz Pratyush Tudyx coreyja dralley irfanghat mvolfik simtheverse
Or read this on Hacker News