-
Notifications
You must be signed in to change notification settings - Fork 10
Conversation
Replaced floating point division with floating point multiplication for execution time reduction. About 3x faster math operation.
Replaced floating point division with floating point multiplication for execution time reduction. About 3x faster math operation.
Use precalculated factors (b)
Use precalculated factors (a)
Hi @Jozo132, thanks for the collaboration. Although I enjoy the idea of this PR, if I do merge this I think I'd have an issue:
As the values are numerically equal, if you change the operation to the inverse one, results will change. For that to work, you have either to leave the Since the whole idea is to increase data processing speed, the best thing to do is the first one. Do you wish to fix that and open a new PR? |
As you can see, the idea was to replace divisions with multiplication. My 'GIT' skills are terrible and I probably messed up somewhere. |
Oops, sorry ... I thought that was the 'Close' window for the comment input Anyway, now that I think about what you asked me. No. |
Omg my mistake. When I read your PR's code, I looked on the commentaries right after your code line:
and assumed that I'll merge this PR and publish a new release right after, thanks again and sorry for the misunderstanding. |
@gabriel-milan I might have spotted a major issue. I have requested this pull request for each file sperately but we only merged ONE!! |
Replacing
floating point division
withfloating point multiplication
for faster data processing in main loop.