Skip to content

Comment on Which is faster? while(1) {} or while(2) {}

Comments

i hope the answer the interviewer was looking for was: "i'm unsure.. i usually check the byte code when i am optimising my work"; stead a flat "No" (the original poster claimed the interviewer said the run times were unequal)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.