Skip to content

Add support for maxThreads>1 #29

@MarkRivers

Description

@MarkRivers

All plugins should support maxThreads>1 if it is feasible and if there would be a performance gain.

I don't see any reason why it should not be feasible for NDPluginBar. It only processes a single image at a time (unlike for example NDPluginProcess which needs to know about the previous image), and that should be able to be done in a thread-safe manner. OpenCV and zbar operations are likely to be time-consuming and a linear improvement in throughput with number of threads could be expected.

The OpenCV and zbar libraries both claim to be thread-safe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions