PaulStoffregen
Well-known member
Yeah, caching the offset for the most recently used report ID is a great idea. In the common case of a device repeatedly sending the same report, we can just skip right to it.
Code to bail out when another report ID is found would also cut down the wasted parsing.
Maybe it'd also be ok to just delete all the bytes for unclaimed top level collections? If nobody claims it, we never offer it again. Then again, devices with more than 1 top level collection aren't very common, are they?
Code to bail out when another report ID is found would also cut down the wasted parsing.
Maybe it'd also be ok to just delete all the bytes for unclaimed top level collections? If nobody claims it, we never offer it again. Then again, devices with more than 1 top level collection aren't very common, are they?