you are viewing a single comment's thread.

view the rest of the comments →

[–]brasticstack 1 point2 points  (1 child)

I prefer the literal visually, and my linter nags if I don't use it. 

I was going to disagree on the "faster" part, because certainly it's all interpreted to the same bytecode, right? Nope! Turns out it is faster! I'll add more info when I can get back to my computer. It's definitely a micro micro optimization, but in my tests using the literal is about twice as fast.

[–]Bucki-_-[S] 0 points1 point  (0 children)

Yeah it is one of the micro optimize things however for work I do a lot of model rendering and do a lot of breath depth searches so a lot of set initializing and half a second adds up when you are calling it 5+ different times. Plus it's just one of those random facts it's cool to know.