Replies: 4 comments
-
|
Do you think the compiler will automatically optimize these operations anyway? |
Beta Was this translation helpful? Give feedback.
-
|
I ran some statements through the Godbolt.org GCC emulator using -Os: |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the above. Given that HomeKit and HAP do not require extreme speeds, I don't think such optimizations would do anything noticeable to performance or the system itself. And sometimes such optimizations make the code less readable (or obvious). |
Beta Was this translation helpful? Give feedback.
-
|
Understood and thanks as always for your hard work on this project! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Gregg,
What do you think of bitwise operations and shifting in hot areas of code like the encryption and decryption code? Here are a few examples I am looking at:
HAP.cpp
Beta Was this translation helpful? Give feedback.
All reactions