2.0.0
First .NET 9 release!
This release tries to further optimize memory allocations on hot paths.
Breaking changes
- All methods that return
BarcodeResult
now returnIReadOnlySet<BarcodeResult>
. IReadOnlySet<BarcodeResult>
isn't memory copied in the background anymore. If you reference it directly it will be cleared afterOnDetectionFinished
event returns. You can add the results to your ownList
if you need to preserve the results outside of the event.OnDetectionFinished
event code is locked withSystem.Threading.Lock
to prevent race conditions. Try to return fromOnDetectionFinished
as fast as possible as it directly impacts detection frequency.