Comment

Comment by Arcten

Iterating via reference instead of copy in C++ is a great way to get a speed up with a one character change.

I.e. changing for (const MyType v : collection) to for (const MyType& v : collection)

parent Arcten 5 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton