You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The problem is inefficiency when simply looking for a single operand and then stopping processing.
For example, if only looking for a single colored pixel in a page.
Describe the solution you'd like
It would make sense to be able to set a stop flag on the processor and return out of the handler, which would cause the processor to return out without further processing.
Is your feature request related to a problem? Please describe.
The problem is inefficiency when simply looking for a single operand and then stopping processing.
For example, if only looking for a single colored pixel in a page.
Describe the solution you'd like
It would make sense to be able to set a stop flag on the processor and return out of the handler, which would cause the processor to return out without further processing.
Describe alternatives you've considered
An alternative implementation using channels has been done by a collaborator.
https://github.com/peterwilliams97/unipdf/blob/early.termination/contentstream/parser.go
https://github.com/peterwilliams97/unidoc-examples/blob/imagemark.classify/testing/pdf_count_color_pages_bench.go
If the simple stop flag would be enough to get this done, I believe it would be more simple method.
Additional context
N/A
The text was updated successfully, but these errors were encountered: