Let's say i'm calling sequentially a calculation_method() nearly 80000 times per seconds.
While coding this, all my floats variables that are used in this calculation_method(), i'm declaring them in the class, in order to not surcharge the garbage collector. Am i right ?
Or should i declare my floats variables inside my calculation_method() ?
In Java, can sometimes local variable run a bit faster than global variables or never ?
Is there something to worry about or not ?