This repository has been archived by the owner on May 8, 2022. It is now read-only.
Best practices around reusing Fuse
objects?
#42
Labels
Fuse
objects?
#42
If I repeatedly search over similar datasets with the same parameters, I wonder if I should use the same
Fuse
object for all searches:vs. using a new
Fuse
object for every searchOf particular concern to me is that I am using the async APIs which rely on per-instance dispatch queues. I kind of like the idea of using a new
Fuse
object for every search so that the searches don't "compete" on the same dispatch queue, but I don't know if there's actually any limit to concurrency per-custom-queue (as opposed to at the level of the global queues that back these custom queues, or eventually at the level where the work items are scheduled on threads, in which case differentFuse
objects would be competing anyway).I also don't know if there's overhead to having many custom dispatch queues, in which case it would be better to reuse one
Fuse
object. This Stack Overflow makes it seem like this wouldn't be a problem.The text was updated successfully, but these errors were encountered: