Naios / continuable

C++14 asynchronous allocation aware futures (supporting then, exception handling, coroutines and connections)
https://naios.github.io/continuable/
MIT License
815 stars 44 forks source link

Question: thread pool of choice #71

Closed pfeatherstone closed 3 months ago

pfeatherstone commented 3 months ago

When using custom executors, is there a good thread pool you recommend that works well with this library or will any be fine ?

Are task stealing lock free ones a good choice or not ?

Cheers

pfeatherstone commented 3 months ago

I was thinking of benchmarking taskflow vs continuable+thread_pool

Naios commented 3 months ago

Hi, it usually depends on your use-case and requirements what a good thread pool is for you. The library can be used with all thread pools that support queuing arbitrary callable objects as work. Therefore, it might be best to benchmark the implementations that fits your use-case.

pfeatherstone commented 3 months ago

Okidok. Will have to do some tests.