You will find some more informations in this recent Stackoverflow question :
http://stackoverflow.com/q/16504643/112053 Le mercredi 29 mai 2013 10:53:41 Ziad Hatahet a écrit : > Hi all, > > Does using Option incur a runtime cost (like increased memory usage) > compared to a hypothetical case if Rust had a NULL type in the language? Or > does it get optimized away, such that it is akin to using NULL in the first > place (albeit safer of course)? > > I have not looked at any assemblies, ut my intuition says that a comparison > with None is a single-word check, so it should be pretty fast. > > Thanks > > -- > Ziad _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
