3 ms·
It isn't slower per se. The 'idiomatic' and imperative part aren't equivalent; 'idiomatic' performs unnecessary work. The real problem is the existence of the
by viktorcode 5y ago
It isn't slower per se. The 'idiomatic' and imperative part aren't equivalent; 'idiomatic' performs unnecessary work.
The real problem is the existence of the overhead isn't obvious from the code.