[PR #388] [CLOSED] Adding -T flag for specifing thread usage. #455

Closed
opened 2026-06-08 11:28:25 +03:00 by zhus · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bootandy/dust/pull/388
Author: @Dj-Codeman
Created: 4/23/2024
Status: Closed

Base: masterHead: master


📝 Commits (10+)

📊 Changes

9 files changed (+93 additions, -58 deletions)

View changed files

📝 completions/_dust (+23 -36)
📝 completions/_dust.ps1 (+2 -0)
📝 completions/dust.bash (+9 -1)
📝 completions/dust.elv (+2 -0)
📝 completions/dust.fish (+1 -0)
📝 man-page/dust.1 (+4 -1)
📝 src/cli.rs (+8 -0)
📝 src/main.rs (+38 -20)
📝 tests/test_flags.rs (+6 -0)

📄 Description

This adds a cli flag:-T, --threads to allow limiting the number of threads that rayon uses while building the thread pool. I'm aware of being able to set rayon_thread_whatever = X but I believe this is a bit simpler.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bootandy/dust/pull/388 **Author:** [@Dj-Codeman](https://github.com/Dj-Codeman) **Created:** 4/23/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (10+) - [`07f5bd7`](https://github.com/bootandy/dust/commit/07f5bd73f2bcd3cee287952c829956122f2ebf4c) Adding threads flag - [`0c7bf35`](https://github.com/bootandy/dust/commit/0c7bf35841799957ad8f85070542e87f3e727195) Removing dev printlns - [`150af26`](https://github.com/bootandy/dust/commit/150af269de2bcb8c046bf08b45b1dd7d52d56f25) Setting thread variable size to u8 to avoid crashes - [`8d4535a`](https://github.com/bootandy/dust/commit/8d4535ad8f1a039e56771f94e782d4f7dc3fa3f1) Formatting - [`2dac971`](https://github.com/bootandy/dust/commit/2dac97146c28de6fe087913f33c01eb8f831dfd0) Delete completions/_dust - [`0974e83`](https://github.com/bootandy/dust/commit/0974e83404c6694c8167182a292c30d31da2d854) merge new _dust - [`3582381`](https://github.com/bootandy/dust/commit/358238199a97b19ecacf9ef81339e3ff4f44bc3e) regenerated _dust - [`a9c591c`](https://github.com/bootandy/dust/commit/a9c591cd405c96bc90fd1ef1b5c137dd18de60e0) Pulling new completions - [`8c321b9`](https://github.com/bootandy/dust/commit/8c321b9ab2eba79ec430bed7995ac9f027878831) Regenerating - [`80e3426`](https://github.com/bootandy/dust/commit/80e342637b97e206eb26b52ed02ab00f74c86baf) Pulling from correct branch ### 📊 Changes **9 files changed** (+93 additions, -58 deletions) <details> <summary>View changed files</summary> 📝 `completions/_dust` (+23 -36) 📝 `completions/_dust.ps1` (+2 -0) 📝 `completions/dust.bash` (+9 -1) 📝 `completions/dust.elv` (+2 -0) 📝 `completions/dust.fish` (+1 -0) 📝 `man-page/dust.1` (+4 -1) 📝 `src/cli.rs` (+8 -0) 📝 `src/main.rs` (+38 -20) 📝 `tests/test_flags.rs` (+6 -0) </details> ### 📄 Description This adds a cli flag:`-T, --threads` to allow limiting the number of threads that rayon uses while building the thread pool. I'm aware of being able to set rayon_thread_whatever = X but I believe this is a bit simpler. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
zhus added the pull-request label 2026-06-08 11:28:25 +03:00
zhus closed this issue 2026-06-08 11:28:26 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#455