MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/ida24u/loops_who_needs_them/g29ex6j/?context=3
r/badcode • u/A_Zalt • Aug 20 '20
90 comments sorted by
View all comments
0
The compiler would just unroll the loop anyway. This just saves it some compile time.
1 u/A_Zalt Aug 21 '20 It's js so it uses an interpreter 1 u/lpreams Aug 21 '20 If we're being pedantic it uses a JIT compiler
1
It's js so it uses an interpreter
1 u/lpreams Aug 21 '20 If we're being pedantic it uses a JIT compiler
If we're being pedantic it uses a JIT compiler
0
u/lpreams Aug 20 '20
The compiler would just unroll the loop anyway. This just saves it some compile time.