suma 0.5.41 → 0.5.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 431b3f51ec584ae707195c6f1a2f98e302bcb0cf3bef73235ab12472724ac1b3
4
- data.tar.gz: 0e63b252d9eb5d92558919c223390ef9449acdc67394477dd743dcfe333aef2f
3
+ metadata.gz: 2dd53cb9feb11d811ab5f1bc07a408e670cd5090e0f5d77f0a4b8b12534a8d93
4
+ data.tar.gz: 1e6b86136d30b16b711e9a8351f0130022913717d0163462c7099a9897d4ad53
5
5
  SHA512:
6
- metadata.gz: 5e1cc7f2fd9c50b683606a0a4939408900cbd740283fc3d2bfd5bd7e70fd78cc37df799f5ced4376c06b46117081ee5de80dbe3f54d4f1f6c7d0f0b506ddaf6e
7
- data.tar.gz: 7239c2d87a4376e0c47e110e17cbdbe6280ae658d8a58940f135456d2a7b7e9b7ae32bfa59a41af5b796366ad0616559714e0aa7625f816e23808d6090358a1f
6
+ metadata.gz: d23bddd8fc77b86b8012220150647bf00899b94ece8eedb3d4ff0b56857e11250cc3d507934a6c41432f6cc88f346dbb825da5f8851746b799b40a55de0cd73b
7
+ data.tar.gz: c43beead9acb833456f19f16115ef9864c6e81e124d912377d3f6c41be33a2a8b5facd94c0b1124c66df093d1c443a443854590cd39b407fdf8b46e636da75dd
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "etc"
3
4
  require "thor"
4
5
 
5
6
  module Suma
@@ -55,9 +56,10 @@ module Suma
55
56
  "to plain_schemas/.suma-build-state.json)"
56
57
  option :state_file, type: :string,
57
58
  desc: "Path to the incremental build state file"
58
- option :jobs, type: :numeric, default: 1,
59
- desc: "Concurrent schema export workers (document " \
60
- "compilation remains sequential)"
59
+ option :jobs, type: :numeric, default: Etc.nprocessors,
60
+ desc: "Concurrent schema export workers (the parser " \
61
+ "releases the GVL, so this is true parallelism; " \
62
+ "document compilation remains sequential)"
61
63
  option :provenance, type: :string,
62
64
  desc: "Write a provenance manifest (sha256 of inputs " \
63
65
  "and outputs + toolchain versions) to this path"
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "etc"
3
4
  require "fileutils"
4
5
 
5
6
  module Suma
@@ -42,7 +43,10 @@ module Suma
42
43
  annotations: false,
43
44
  create_zip: false,
44
45
  structure: :preserve,
45
- jobs: 1,
46
+ # Cold-parse parallelism by default: the parsanol parse is the
47
+ # dominant cost of a vanilla (no cache) build and is GVL-free
48
+ # (Rust), so N workers is a near-N-fold cut. Pass jobs: to pin it.
49
+ jobs: Etc.nprocessors,
46
50
  }
47
51
  end
48
52
 
data/lib/suma/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Suma
4
- VERSION = "0.5.41"
4
+ VERSION = "0.5.42"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.41
4
+ version: 0.5.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-11-14 00:00:00.000000000 Z
11
+ date: 2026-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64