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 +4 -4
- data/lib/suma/cli/build.rb +5 -3
- data/lib/suma/schema_exporter.rb +5 -1
- data/lib/suma/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2dd53cb9feb11d811ab5f1bc07a408e670cd5090e0f5d77f0a4b8b12534a8d93
|
|
4
|
+
data.tar.gz: 1e6b86136d30b16b711e9a8351f0130022913717d0163462c7099a9897d4ad53
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d23bddd8fc77b86b8012220150647bf00899b94ece8eedb3d4ff0b56857e11250cc3d507934a6c41432f6cc88f346dbb825da5f8851746b799b40a55de0cd73b
|
|
7
|
+
data.tar.gz: c43beead9acb833456f19f16115ef9864c6e81e124d912377d3f6c41be33a2a8b5facd94c0b1124c66df093d1c443a443854590cd39b407fdf8b46e636da75dd
|
data/lib/suma/cli/build.rb
CHANGED
|
@@ -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:
|
|
59
|
-
desc: "Concurrent schema export workers (
|
|
60
|
-
"
|
|
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"
|
data/lib/suma/schema_exporter.rb
CHANGED
|
@@ -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
|
-
|
|
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
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.
|
|
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-
|
|
11
|
+
date: 2026-11-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|