multithreaded-estimators icon indicating copy to clipboard operation
multithreaded-estimators copied to clipboard

Add a generator implementation

Open austinzh opened this issue 6 years ago • 0 comments

Hi, Your multi-threading implementation give me a lot of inspirations for how to use the estimator API. After some dig-in, I found there is way to use only a simple generator instead of Queue and threading to achieve similar or even better performance(because there is not context switch in generator implementation).

Hope you guys will like it.

starting threaded
starting generator
Threaded time was 1.24210524559021; s
Generator time was 1.1133246421813965;  s
Generator was 1.115672103652073 times faster!

Austin

austinzh avatar Jun 11 '19 02:06 austinzh