Skip to content

2.0.0

Compare
Choose a tag to compare
@afriscic afriscic released this 18 Nov 11:18
· 6 commits to master since this release

First .NET 9 release!
This release tries to further optimize memory allocations on hot paths.

Breaking changes

  • All methods that return BarcodeResult now return IReadOnlySet<BarcodeResult>.
  • IReadOnlySet<BarcodeResult> isn't memory copied in the background anymore. If you reference it directly it will be cleared after OnDetectionFinished event returns. You can add the results to your own List if you need to preserve the results outside of the event.
  • OnDetectionFinished event code is locked with System.Threading.Lock to prevent race conditions. Try to return from OnDetectionFinished as fast as possible as it directly impacts detection frequency.