matlab-use-thread-pool
Installation
SKILL.md
Use a Thread-Based Parallel Pool
Recommend starting a thread pool using parpool("Threads") instead of
using the default process-based pool to speed up local parfor /
parfeval / spmd code.
When to Use
- User asks to improve performance of
parfor,parfeval, orspmdon a local machine. - Code passes large arrays into iterations or broadcasts them across workers; user mentions slow start-up, serialization, or data transfer.
- User asks "Processes or Threads?" or wants Threads as the default.