I've run into some serious performance issues using the hid drivers
from my application with some specific keyboards and I'm hoping
someone can point me in the right direction.
My application is looking for consumer page button presses on
keyboards (the extra buttons for Mail, Documents, etc). It works
great on most keyboards (Apple, Logitech, etc). However, on
Microsoft keyboards I take a huge CPU hit (7-10 seconds of 100%
usage) when I open the HID driver for it, and again when I call
IORegistryEntryCreateCFProperties. That's on a 1.25 GHz Mac Mini.
Slightly faster on my dual G5, but not much. I see the hit on both
10.3.9 and 10.4.1.
I'm using the following code (edited for mail) to find devices:
And finally, this code gets the properties of the device, which I use
to see what buttons are on the device. I take another 7-10 second hit
in IORegistryEntryCreateCFProperties.
It looks like the driver is spending a lot of time building
dictionaries. However, the dictionary size is not terribly different
from what I get for an Apple keyboard (~200K vs ~230K).
Any thoughts?
Thanks,
Dave
---
There's an old proverb that says just about whatever you want it to.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden