Optimization Question
Looking at a few things with the EMU and PEQ database and had a question.
Which way would be faster if there is much difference? Assuming that about 1000 entries are read in from the database and 20% of the entries are larger than 256. Code:
heading = db.heading; Code:
heading = db.heading % 256; |
Have you profiled this to be an actual problem?
|
No, but with 18600+ entries in the database being 256+, I would assume that it would take some calculations. That's why I was wondering what the difference would be, if any. If it doesn't matter, I wouldn't recommend a change. After PEQ comes back up, I will still change all the headings. I was just checking if any processor power went into it.
|
All times are GMT -4. The time now is 11:31 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.