☠ unsafe code ☠
Herb Sutter's aliased shared_ptr pitfall
C++
for loop
serial for_each
C++17 parallel for_each
Rust
for loop
serial for_each
Rayon parallel for_each
C++
for loop
serial for_each
C++17 parallel for_each
Rust
for loop
serial for_each
Rayon parallel for_each
C++
atomic<int>
mutex
Rust
AtomicI32
Mutex<i32>
one string allocation
one string allocation
three string allocations
three string allocations
on my box:
on my box:
on my box:
s1 == ""
s1 == None
v == ["bar", "baz"]
Louis Brandy's vexing parse