Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BINTOC() and CDX size
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00173567
Message ID:
00175048
Views:
31
George,

I'd say it's due to the fact that we are still working in p-code. And there must be more overhead involved in passing the arguments even if the function does a CPU optimal OR at it's core.

>Quite frankly, I don't know. In other instances my assumptions on what performs better have been wrong and this may be another. When VFP first introduced bitwise operators to language, I assumed that BITOR() with two values would be faster than the addition of them. My logic was that BITOR() would map directly to the processor's instruction set. In testing this, it seems that addition is faster. Why? The math co-processor? That's what I assume, but I can't offer any conclusive proof.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform