@@ -83,8 +83,8 @@ Available subcommands:
8383** `--manifest-path PATH` - Path to schemas.yml manifest file
8484** `--cache-dir DIR` - Directory for caching downloaded tools
8585** `--log-dir DIR` - Directory for storing log files
86- ** `--parallel` / `--no-parallel` - Enable/disable parallel processing with Ractors
87- ** `--ractors NUM` - Number of parallel ractors to use (default: auto-configured)
86+ ** `--parallel` / `--no-parallel` - Enable/disable parallel processing with Fractors (default: enabled)
87+ ** `--workers NUM` - Number of parallel workers to use (default: auto-configured)
8888* `clean` - Remove generated documentation
8989* `distclean` - Remove generated documentation and downloaded tools
9090** `--global-cache` - Also clean the global cache directory
@@ -99,8 +99,8 @@ bundle exec hrma build documentation
9999# Generate documentation with custom manifest file
100100bundle exec hrma build documentation --manifest-path=custom-schemas.yml
101101
102- # Generate documentation with 4 ractors
103- bundle exec hrma build documentation --ractors =4
102+ # Generate documentation with 4 workers
103+ bundle exec hrma build documentation --workers =4
104104
105105# Generate documentation without parallel processing
106106bundle exec hrma build documentation --no-parallel
@@ -158,36 +158,35 @@ bundle exec hrma config set cache_dir /path/to/cache
158158
159159=== Parallel processing
160160
161- The tool supports parallel processing using Ruby's Ractor feature. This
162- significantly speeds up documentation generation for large numbers of schema
163- files.
161+ The tool supports parallel processing using Ruby's Ractor feature through the Fractor framework. This
162+ significantly speeds up documentation generation for large numbers of schema files.
164163
165- By default, the tool automatically determines the optimal number of ractors to
164+ By default, the tool automatically determines the optimal number of workers to
166165use based on your system resources:
167166
168- * In "auto" mode (default), the number of ractors is determined by:
167+ * In "auto" mode (default), the number of workers is determined by:
169168** Using half of your CPU cores (rounded down)
170169** Ensuring at least 2 cores are left free for system processes
171- ** Using at least 1 ractor
172- ** Using one ractor per file when possible (up to the calculated maximum)
170+ ** Using at least 1 worker
171+ ** Using one worker per file when possible (up to the calculated maximum)
173172
174173This auto-configuration provides a good balance between performance and system
175174responsiveness.
176175
177176[example]
178177====
179- * With 4 files on a 4-core system: 1 ractor would be used (half cores = 2, but ensuring 2 cores are free = 1)
180- * With 4 files on an 8-core system: 4 ractors would be used (half cores = 4, which leaves enough free cores)
181- * With 4 files on a 16-core system: 4 ractors would be used (one per file, even though 8 ractors would be available)
182- * With 10 files on a 16-core system: 8 ractors would be used (half cores = 8, which is less than file count)
178+ * With 4 files on a 4-core system: 1 worker would be used (half cores = 2, but ensuring 2 cores are free = 1)
179+ * With 4 files on an 8-core system: 4 workers would be used (half cores = 4, which leaves enough free cores)
180+ * With 4 files on a 16-core system: 4 workers would be used (one per file, even though 8 workers would be available)
181+ * With 10 files on a 16-core system: 8 workers would be used (half cores = 8, which is less than file count)
183182====
184183
185- You can manually specify the number of ractors :
184+ You can manually specify the number of workers :
186185
187186[source,sh]
188187----
189- # Use 4 ractors for parallel processing
190- bundle exec hrma build documentation --ractors =4
188+ # Use 4 workers for parallel processing
189+ bundle exec hrma build documentation --workers =4
191190----
192191
193192To disable parallel processing entirely:
@@ -196,9 +195,6 @@ To disable parallel processing entirely:
196195----
197196# Disable parallel processing
198197bundle exec hrma build documentation --no-parallel
199-
200- # Alternative method
201- HRMA_DISABLE_RACTORS=1 bundle exec hrma build documentation
202198----
203199
204200
@@ -215,8 +211,9 @@ The `hrma` tool is organized into several components:
215211=== Build system
216212
217213* `lib/hrma/build/document_generator.rb` - Main class for generating documentation
218- * `lib/hrma/build/ractor_document_processor.rb` - Processor for XSD files that can run within a Ractor
219- * `lib/hrma/build/documentation.rb` - Module with documentation generation utilities
214+ * `lib/hrma/build/schema_processor.rb` - Processes individual schema files
215+ * `lib/hrma/build/schema_work.rb` - Work item representation for parallel processing
216+ * `lib/hrma/build/schema_worker.rb` - Worker implementation for parallel processing
220217* `lib/hrma/build/tools.rb` - Handles downloading and setting up external tools
221218* `lib/hrma/build/cleaner.rb` - Handles cleaning generated files
222219
0 commit comments