Comment

Comment by throwawayadvsec

it's unlikely that there is a difference

compilers are usually optimizing these kind of statements so they end up similar or identical

if you wanna be sure, make two loops running a few million times with random if else / switches and time them

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton