7 ms·
"doubly linked list detected, this language does not support such constructs without 'unsafe' keyword being used to wrap it"
by dmitrygr 7y ago
"doubly linked list detected, this language does not support such constructs without 'unsafe' keyword being used to wrap it"
- ZirconiumX 7y agoWhich is why you implement a doubly linked list using data indices in a Vec<Node>. The resulting data structure is fully safe and resembles an ECS.
- dmitrygr 7y agoAnd features an extra level of indirection for your CPU's dcache prefetch predictor to trip over
- deleted 7y ago[deleted]
- hexane360 7y agohttps://play.rust-lang.org/?gist=c3db81ec94bf231b721ef483f58deb35 https://play.rust-lang.org/?gist=c3db81ec94bf231b721ef483f58...