leptris 1.9.418.0-ppc64le-linux → 1.9.418.1-ppc64le-linux
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/TODO.perf/39-hot-c-reads-or-hydrated-walk.md +35 -0
- data/TODO.perf/40-nodeset-c-mint.md +10 -0
- data/TODO.perf/41-c-set-attribute-entry.md +11 -0
- data/lib/leptris/version.rb +1 -1
- metadata +4 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c689812db7e1cb340db6b33aa9b1740d6aa74d0fd4b9f0a31093b4fd7a634b25
|
|
4
|
+
data.tar.gz: 2ecb0d6953d0ea924e5f19560445c24d8eeaa9da9098f81818d65bd948a37f7b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf2be4df8c1fadeb4122f6bfdd47e91bf39f043e5a2b6145f9b597e8027ca4ece5cc0ae6501b0df9f386d8df29d671c68910497af8f436e403b5c0f4b8a2485a
|
|
7
|
+
data.tar.gz: 3b527998d6aa9b59046d64d6a420ebd51eafade821b3fb454dfc539441038c84efa8fae76b1d52aa914162b82e7d87f2316b74b1445e5918b7002a3b2d372cff
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# 39 — Hot reads: C-defined parameterized readers, or the hydrated columnar walk
|
|
2
|
+
|
|
3
|
+
Status: QUEUED (leptris-ruby#622, ask 1)
|
|
4
|
+
|
|
5
|
+
Source: the moxml-on-leptris facade's structural-row losses, all at
|
|
6
|
+
the per-read/per-mint Ruby floor. Facade reads sit at ~331ns because
|
|
7
|
+
every read is an `UnboundMethod#bind_call` (one Ruby frame). The
|
|
8
|
+
proven budgets (TODO.perf/32, clean host): native `[]` 71ns, binding
|
|
9
|
+
memo seam ~160ns. The 2x-reads finish line needs the last Ruby frame
|
|
10
|
+
gone. Two acceptable shapes — the owner picks:
|
|
11
|
+
|
|
12
|
+
- **(a)** a binding-side C API that defines hot instance methods on
|
|
13
|
+
arbitrary receiver classes, operating on the receiver's TypedData
|
|
14
|
+
struct — the shape #204's closure sketched ("C-defined hot methods
|
|
15
|
+
parameterized by subclass"). moxml's Identity classes (subclass
|
|
16
|
+
NativeNode, klass-injected via `NativeNode.from`) get C
|
|
17
|
+
`[]`/`name`/`content`/`attribute` readers; the platform matrix
|
|
18
|
+
stays on the leptris dependency (moxml remains pure-Ruby).
|
|
19
|
+
- **(b)** extend `walk_columnar` (TODO.perf/32's face) to a
|
|
20
|
+
**hydrated** walk: the same single crossing returns, per row, the
|
|
21
|
+
flat attr packet + text content alongside names/handles/depths.
|
|
22
|
+
The consumer pipeline (walk + attribute + text reads) then pays
|
|
23
|
+
zero per-read calls — the reads ride the walk crossing.
|
|
24
|
+
|
|
25
|
+
Unlocks: walk+read (warm) 0.67x, walk+read (cold) 0.37x, children
|
|
26
|
+
recursion (cold) 0.46x of raw nokogiri.
|
|
27
|
+
|
|
28
|
+
## Evidence
|
|
29
|
+
|
|
30
|
+
- lutaml/moxml scoreboard baseline (v0.5.166-era, clean host,
|
|
31
|
+
interleaved A/B per the published protocol).
|
|
32
|
+
- TODO.perf/32's clean-host floor table: `[]` 71ns native / 160ns
|
|
33
|
+
binding seam.
|
|
34
|
+
- leptris-ruby#527's verdict: the engine line is flat — the cold-row
|
|
35
|
+
cost is binding/facade, not an engine regression.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# 40 — NodeSet.from_result: klass-injected result materialization
|
|
2
|
+
|
|
3
|
+
Status: QUEUED (leptris-ruby#622, ask 2 — the #204 ask, refiled)
|
|
4
|
+
|
|
5
|
+
`xpath_result_rows_bulk` crosses once but still mints wrappers in a
|
|
6
|
+
Ruby loop (~1.4us/query ask from #204). Mint the result rows in C
|
|
7
|
+
with klass injection so consumers receive their wrapper classes
|
|
8
|
+
directly.
|
|
9
|
+
|
|
10
|
+
Unlocks: xpath `//field` (each) 0.59x of raw nokogiri.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# 41 — C set-attribute entry (the write floor)
|
|
2
|
+
|
|
3
|
+
Status: QUEUED (leptris-ruby#622, ask 3)
|
|
4
|
+
|
|
5
|
+
`set_binding_text` landed (adopted behind a face probe); attribute-set
|
|
6
|
+
has no C entry — post-build `set_attribute` pays the binding-layer
|
|
7
|
+
crossing per attribute. `add_element_full` (TODO.sota/04) covers
|
|
8
|
+
build-time attrs only.
|
|
9
|
+
|
|
10
|
+
Unlocks: mutation-heavy/builder lanes (the build add_element row is
|
|
11
|
+
at 0.975x and rides on this for the post-hoc shape).
|
data/lib/leptris/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: leptris
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.9.418.
|
|
4
|
+
version: 1.9.418.1
|
|
5
5
|
platform: ppc64le-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
@@ -108,6 +108,9 @@ files:
|
|
|
108
108
|
- TODO.perf/36-raise-in-c-serializer-encoding.md
|
|
109
109
|
- TODO.perf/37-document-lazy-pointer.md
|
|
110
110
|
- TODO.perf/38-bulk-walk-and-bench-gate.md
|
|
111
|
+
- TODO.perf/39-hot-c-reads-or-hydrated-walk.md
|
|
112
|
+
- TODO.perf/40-nodeset-c-mint.md
|
|
113
|
+
- TODO.perf/41-c-set-attribute-entry.md
|
|
111
114
|
- TODO.restructure/01-constraint-compliance-audit.md
|
|
112
115
|
- TODO.restructure/02-deep-copy-seam.md
|
|
113
116
|
- TODO.restructure/03-evaluation-context-seam.md
|