moxml 0.6.11 → 0.6.12
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/moxml/adapter/leptris.rb +14 -51
- data/lib/moxml/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a33da4e9ee49e1237bef05440ce34cd92c555bd4c9231ec281680fbcea25a13f
|
|
4
|
+
data.tar.gz: 5e1a2445d336d79ffb219638ef87c8577283b47e6b9f23d45779fb46474771be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9e08d2d5b2102b8aab4b5a881207724ee7fe3784631583139cdc976ca6d9e4b30e5521c14465c4214c28c0b627194533363cb5b5f5a43546c2b2e90f6dc1828c
|
|
7
|
+
data.tar.gz: 823d4d706715b957f272f91cf79c998a52bb587f45ab63612a649ca5d75c934338faabbc38564ba95583206eeb54592ddc713c859094537ed97a2f0463ebfbda
|
|
@@ -111,32 +111,6 @@ module Moxml
|
|
|
111
111
|
end
|
|
112
112
|
end
|
|
113
113
|
|
|
114
|
-
# The consumer-contract lane's attribute object
|
|
115
|
-
# (leptris-ruby#635): the shape the bound C factory constructs -
|
|
116
|
-
# (name, value, owner). Covers the walk+read contract
|
|
117
|
-
# (.name/.value); full attribute-node faces stay on the contract
|
|
118
|
-
# classes.
|
|
119
|
-
class LaneAttribute
|
|
120
|
-
attr_reader :name, :value, :owner, :ns_uri
|
|
121
|
-
|
|
122
|
-
# ns_uri: the attribute's in-scope namespace URI from the
|
|
123
|
-
# engine (nil for bare attributes). The lane builds its own
|
|
124
|
-
# Namespace struct - the full wrapper namespace stays on the
|
|
125
|
-
# contract classes.
|
|
126
|
-
LaneNamespace = Struct.new(:uri)
|
|
127
|
-
|
|
128
|
-
def initialize(name, value, owner = nil, ns_uri = nil)
|
|
129
|
-
@name = name
|
|
130
|
-
@value = value
|
|
131
|
-
@owner = owner
|
|
132
|
-
@ns_uri = ns_uri
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
def namespace
|
|
136
|
-
@ns_uri ? LaneNamespace.new(@ns_uri) : nil
|
|
137
|
-
end
|
|
138
|
-
end
|
|
139
|
-
|
|
140
114
|
if Gem::Version.new(::Leptris::VERSION.to_s) <
|
|
141
115
|
Gem::Version.new(MINIMUM_BINDING_VERSION)
|
|
142
116
|
raise Moxml::AdapterError.new(
|
|
@@ -2153,12 +2127,6 @@ module Moxml
|
|
|
2153
2127
|
if NATIVE_READ_LAYER &&
|
|
2154
2128
|
defined?(::Leptris::XML::Native) &&
|
|
2155
2129
|
::Leptris::XML::Native.respond_to?(:define_hot_readers)
|
|
2156
|
-
# Elements: name + content (the C bodies ARE the
|
|
2157
|
-
# contract answers for clean documents). Text: content
|
|
2158
|
-
# only (the text-payload read). Comment/cdata/PI keep
|
|
2159
|
-
# the contract classes outright - their payload reads
|
|
2160
|
-
# are contract-shaped (the reference differential pins
|
|
2161
|
-
# them), so hot classes for those kinds answer wrongly.
|
|
2162
2130
|
hot_el = Class.new(Identity::ELEMENT)
|
|
2163
2131
|
::Leptris::XML::Native.define_hot_readers(hot_el)
|
|
2164
2132
|
hot_el.remove_method(:attribute)
|
|
@@ -2166,29 +2134,24 @@ module Moxml
|
|
|
2166
2134
|
::Leptris::XML::Native.define_hot_readers(hot_tx)
|
|
2167
2135
|
hot_tx.remove_method(:attribute)
|
|
2168
2136
|
hot_tx.remove_method(:name)
|
|
2169
|
-
#
|
|
2170
|
-
#
|
|
2171
|
-
#
|
|
2172
|
-
#
|
|
2173
|
-
#
|
|
2174
|
-
#
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
)
|
|
2180
|
-
end
|
|
2137
|
+
# REVERTED (measured, the pinned runner): the
|
|
2138
|
+
# consumer-contract binding (leptris-ruby#635) was
|
|
2139
|
+
# bound here in 0.6.10 - the C children/attribute
|
|
2140
|
+
# SHADOWED the facade's tuned lanes (the address-token
|
|
2141
|
+
# children and the attribute packet) and every
|
|
2142
|
+
# structural row regressed: walk warm 0.67x -> 0.49x,
|
|
2143
|
+
# attr pairs 8.18x -> 6.65x, xpath count 2.13x -> 1.48x.
|
|
2144
|
+
# The faces remain available to row-shaped consumers
|
|
2145
|
+
# via the moxml-rs data plane; the facade dispatch
|
|
2146
|
+
# keeps its tuned lanes.
|
|
2181
2147
|
hot_set = [hot_el, hot_tx, Identity::COMMENT,
|
|
2182
2148
|
Identity::CDATA,
|
|
2183
2149
|
Identity::PROCESSING_INSTRUCTION].freeze
|
|
2184
2150
|
# The klass-propagating reads (#246) mint through the
|
|
2185
|
-
# RECEIVER class's child map - the hot classes need
|
|
2186
|
-
# own, or the C visit mint yields nil for their
|
|
2187
|
-
# (the root-level
|
|
2188
|
-
# while the C children read stayed correct).
|
|
2189
|
-
# Install ONLY on the hot classes: the contract kinds'
|
|
2190
|
-
# maps are the load-time installation - overwriting them
|
|
2191
|
-
# here would re-route the contract kinds' children mints.
|
|
2151
|
+
# RECEIVER class's child map - the hot classes need
|
|
2152
|
+
# their own, or the C visit mint yields nil for their
|
|
2153
|
+
# entries (the root-level // gather truncated at depth
|
|
2154
|
+
# >= 2 while the C children read stayed correct).
|
|
2192
2155
|
if NATIVE_KLASS_CHILDREN
|
|
2193
2156
|
hot_set.first(2).each do |klass|
|
|
2194
2157
|
klass.install_child_klasses(hot_set)
|
data/lib/moxml/version.rb
CHANGED