leptris 1.9.423.0-arm-linux → 1.9.424.0-arm-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c656a55cb79583d06041a37bce0f905401da7d5a6fd6e59700c5a81e3eb90b0
4
- data.tar.gz: 0f9755c81a030263728a8559f5c6431161fe5afc82731928ac170145cbb31ada
3
+ metadata.gz: 62947512cd9b5a1e77520012561926780fb5cce36b087e07fbcec4affedb9edb
4
+ data.tar.gz: a24ed3d424da6b8bea535e2bba70acbf1adb41c055be9d8f04a084cf17757b7d
5
5
  SHA512:
6
- metadata.gz: a19705c3ffb07b18779cb4b0e6ac579833c8f75bd60ce9c8a14ba5a57a5b863cd9fb1dae0bf25c6b0029dd851977b18c5658e4e56b8236ff6150296c3112fd23
7
- data.tar.gz: 2ac3406e7962ed1485c021920021b3316d81ea51f6cba775f39a8d462dd85f5a427bdf60ce721ce9d5a481c08b7d760ed1fc0a6da1e092aef4ae9bb327ddbba2
6
+ metadata.gz: d08ce99f1c36bd7510c75707c1d839ed58ac69b1c647851011aa3a4b311a91c356ad74121fe43910d8a995b6c64172fb861c21dd912a009abfe17e05e3e50ed7
7
+ data.tar.gz: 28bfff5b20c97901a7b2d402882c7ae39c996897f11b7da9ae42dd17593d835afd972e11b3fc7c8c477df8e7b85b9f710ff1b4ffe21409404437f83cf5badcb7
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ RSpec::Core::RakeTask.new(:spec)
8
8
  # Pin for `rake compile` and the platform-gem builds. Keep in lockstep
9
9
  # with .github/workflows/build.yml (which calls `rake compile`) and the
10
10
  # CHANGELOG when libleptris releases.
11
- LIBLEPTRIS_VERSION = "1.9.423"
11
+ LIBLEPTRIS_VERSION = "1.9.424"
12
12
  # Vendored alongside libleptris for fn:normalize-unicode (TODO
13
13
  # .restructure/20): built per platform with a RELOCATABLE @rpath
14
14
  # install name, loaded by ffi.rb before libleptris so the
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Leptris
4
- VERSION = "1.9.423.0"
4
+ VERSION = "1.9.424.0"
5
5
  end
data/lib/libleptris.so CHANGED
Binary file
data/vendor-src/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  Sources vendored in this gem (recompile rights; the ruby
2
2
  variant builds them at install via extconf.rb):
3
3
 
4
- - libleptris v1.9.423
4
+ - libleptris v1.9.424
5
5
  - utf8proc v2.11.0
6
6
 
7
7
  Rebuild by hand:
@@ -1,5 +1,16 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.9.424] - 2026-11-15
4
+
5
+ ### Performance
6
+
7
+ - **direct-parse: the attribute face keeps its own frame** (leptris#2032, two levers). The CI-gated attrparse row moved on every platform: **macos −26% to a 0.96× win over pugixml, ubuntu-x86 −20% to 0.98×, ubuntu-arm −9% (1.20× → 1.09×)**. Lever 1 (#2041): `dp_add_attr_inline`'s 10-argument form overflowed arm64's 8-register window — `name_colon` plus a flags word spilled to the caller's frame; packing `len|hash<<32` and the two scan flags into scalars keeps every argument in a register. Lever 2 (#2046): LTO folded `dp_parse_attrs` into `direct_parse_internal`'s mega-frame, where gcc-13's arm64 register allocator spilled the loop's state (~7KB frame, the on-runner profile's dominant samples); `LEPTRIS_NOINLINE` keeps it in its own frame — the file's own `dp_parse_doctype` pattern. Both levers behavior-neutral; the full suite and the three-leg CI bench gates decided each.
8
+
9
+ ### Tooling
10
+
11
+ - **perf-record harness on the CI arm runner** (branch `repro/2032-perf`): `perf record` + report + annotate artifacts under `perf_event_paranoid=1` with the generic linux-tools binary — the on-runner profile that localized both levers.
12
+
13
+
3
14
  ## [1.9.423] - 2026-11-15
4
15
 
5
16
  ### Fixed
@@ -3,7 +3,7 @@
3
3
  cmake_minimum_required(VERSION 3.20)
4
4
 
5
5
  project(leptris
6
- VERSION 1.9.423
6
+ VERSION 1.9.424
7
7
  DESCRIPTION "Fast XML parser and XPath evaluator in pure C"
8
8
  LANGUAGES C CXX
9
9
  )
@@ -1077,7 +1077,15 @@ static int dp_raw_attr(DParser* p, LeptrisElement elem,
1077
1077
  static struct leptris_ns_cache* dp_ensure_cache(DParser* p,
1078
1078
  LeptrisElement elem);
1079
1079
 
1080
- static int dp_parse_attrs(DParser* p, LeptrisElement elem) {
1080
+ /* Deliberately noinline (the dp_parse_doctype pattern): under LTO
1081
+ * gcc-13 folded this into direct_parse_internal's mega-frame, and the
1082
+ * arm64 register allocator spilled the attr loop's state into a ~7KB
1083
+ * stack frame (the #2032 on-runner profile: ~13% of the attr face's
1084
+ * samples in prologue spill traffic). Own frame = own allocation —
1085
+ * the hot fields stay in registers; the call cost is one frame per
1086
+ * TAG, not per attribute. */
1087
+ static LEPTRIS_NOINLINE int dp_parse_attrs(DParser* p,
1088
+ LeptrisElement elem) {
1081
1089
  /* Reset the per-element caches so dp_add_attr_inline and the
1082
1090
  * xmlns wiring below can both run in O(1) per attr. */
1083
1091
  p->current_elem_last_attr = NULL;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
3
3
  "name": "leptris",
4
- "version": "1.9.423",
4
+ "version": "1.9.424",
5
5
  "description": "High-performance XML parser and XPath 1.0 engine in C (libleptris)",
6
6
  "homepage": "https://github.com/leptris/leptris",
7
7
  "license": "MIT",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leptris
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.423.0
4
+ version: 1.9.424.0
5
5
  platform: arm-linux
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-15 00:00:00.000000000 Z
11
+ date: 2026-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi