3 ms·
Often the workaround to graph representations that safe Rust can't do with the usual pointer approach is faster. You keep the data in an array, which improves
by jackmott42 3y ago
Often the workaround to graph representations that safe Rust can't do with the usual pointer approach is faster. You keep the data in an array, which improves your cache hit rate. Even C++ programmers will often use the same workaround either for safety or performance reasons.
As for overall performance in real programs, Rust seems to consistently do as well or better than C++ programs as the cases from Microsoft here show.