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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 00eccdc5e729d9351e2248793f63390fd187422f230b24cb7e004b48a987214c
4
- data.tar.gz: c38c15b437514f9cd5b6fdbfca07248f50446f66fd3123c241bca91557d3124b
3
+ metadata.gz: a33da4e9ee49e1237bef05440ce34cd92c555bd4c9231ec281680fbcea25a13f
4
+ data.tar.gz: 5e1a2445d336d79ffb219638ef87c8577283b47e6b9f23d45779fb46474771be
5
5
  SHA512:
6
- metadata.gz: e9dea42308d15473d1c16e9505e9aa20c4d432230721217790676ca94996ce1acc331900b44a7cc43e1b1943d509694b6ec77480d26c3cc84e561bcc342130b5
7
- data.tar.gz: 4e212373a3d89dda208cc841a88a5b460effefab472e1d80341aae1e70b29af920ac7e97de144e0c1aba82f8c6779756c4bd5c048bff5c5e040ea93010472bb2
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
- # The consumer-contract binding (leptris-ruby#635): the
2170
- # descent's shapes constructed in C - children serving
2171
- # the #530 memo'd list wrapped by the NodeSet factory,
2172
- # attribute serving the decode getter wrapped by the
2173
- # attribute factory. Bound on the hot element class
2174
- # only (the contract kinds keep the Ruby-mediated set).
2175
- if ::Leptris::XML::Native.respond_to?(:bind_consumer_contract)
2176
- ::Leptris::XML::Native.bind_consumer_contract(
2177
- hot_el, Moxml::NodeSet,
2178
- Moxml::Adapter::Leptris::LaneAttribute
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 their
2186
- # own, or the C visit mint yields nil for their entries
2187
- # (the root-level XPath gather truncated at depth >= 2
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Moxml
4
- VERSION = "0.6.11"
4
+ VERSION = "0.6.12"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moxml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.11
4
+ version: 0.6.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.