Skip to content

test-2: Improve C++ primes test (#348)

Choose a tag to compare

@fulcanelly fulcanelly released this 22 Dec 14:58
a6a3dad
Using map container and make_shared gives noticeable performance boost.
Also prefer [] operator rather than at(), as it has no bounds checking.
The rest of the changes just makes it more C++'y.

Signed-off-by: Radek Szymanski <radszy@pm.me>