Does it matter how big numbers to calculate in JavaScript Engine, especially V8 in NodeJS?
The applicable example: I'm calculating in loops time date variables in milliseconds and have some time variables in minutes. I have doubts should I convert all times from minutes to milliseconds to have everything consistent, or vice-versa to have smaller values for easer calculation?
- time in minutes: 27686190
- time in milliseconds: 1661171400000
Converting complexity from milliseconds to minutes (I believe insignificant) - 2 variables per loop. From minutes to milliseconds - 2 variables once.