diff options
| author | Dan Engelbrecht <[email protected]> | 2024-03-28 14:56:20 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-03-28 14:56:20 +0100 |
| commit | 76ac4d541c603dd869e18cfbc6644ebf6c6e22d7 (patch) | |
| tree | f919560d5ddb5a33057f9337d930ca327149dafd /src/zenutil/include | |
| parent | add "fieldnames" query param for GetProjectFiles/GetProjectChunkInfos (#29) (diff) | |
| download | zen-76ac4d541c603dd869e18cfbc6644ebf6c6e22d7.tar.xz zen-76ac4d541c603dd869e18cfbc6644ebf6c6e22d7.zip | |
Use multithreading to fetch size/rawsize of entries in `/prj/{project}/oplog/{log}/chunkinfos` and `/prj/{project}/oplog/{log}/files` (#30)
- Improvement: Use multithreading to fetch size/rawsize of entries in `/prj/{project}/oplog/{log}/chunkinfos` and `/prj/{project}/oplog/{log}/files`
- Improvement: Add `GetMediumWorkerPool()` in addition to `LargeWorkerPool()` and `SmallWorkerPool()`
Diffstat (limited to 'src/zenutil/include')
| -rw-r--r-- | src/zenutil/include/zenutil/workerpools.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/zenutil/include/zenutil/workerpools.h b/src/zenutil/include/zenutil/workerpools.h index 339120ece..78a8e5c5e 100644 --- a/src/zenutil/include/zenutil/workerpools.h +++ b/src/zenutil/include/zenutil/workerpools.h @@ -6,10 +6,13 @@ namespace zen { -// Worker pool with std::thread::hardware_concurrency() worker threads +// Worker pool with std::thread::hardware_concurrency() worker threads, but at least one thread WorkerThreadPool& GetLargeWorkerPool(); -// Worker pool with std::thread::hardware_concurrency() / 4 worker threads +// Worker pool with std::thread::hardware_concurrency() / 4 worker threads, but at least one thread +WorkerThreadPool& GetMediumWorkerPool(); + +// Worker pool with std::thread::hardware_concurrency() / 8 worker threads, but at least one thread WorkerThreadPool& GetSmallWorkerPool(); // Special worker pool that does not use worker thread but issues all scheduled work on the calling thread |