BSD Ports

textproc/libxmlb 0.3.29nb1 NetBSD

Library to help create and query binary XML blobs

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
7b5a3977f9
License
gnu-lgpl-v2.1
Categories
textproc
Package size
164.0 KiB, 928.0 KiB installed

Description

XML is slow to parse and strings inside the document cannot be memory mapped as they do not have a trailing NUL char. The libxmlb library takes XML source, and converts it to a structured binary representation with a deduplicated string table -- where the strings have the NULs included.

This allows an application to mmap the binary XML file, do an XPath query and return some strings without actually parsing the entire document. This is all done using (almost) zero allocations and no actual copying of the binary data.

As each node in the binary XML file encodes the 'next' node at the same level it makes skipping whole subtrees trivial. A 10Mb binary XML file can be loaded from disk *and* queried in less than a few milliseconds.

In the other systems

SystemPortVersion
NetBSDtextproc/libxmlb0.3.29nb1
FreeBSDtextproc/libxmlb0.3.27
OpenBSDtextproc/libxmlb0.3.29
DragonFlytextproc/libxmlb0.3.22
MidnightBSDtextproc/libxmlb0.3.27

Install

Binary package:

pkgin install libxmlb

From pkgsrc:

cd /usr/pkgsrc/textproc/libxmlb && make install clean

Dependencies

Run dependencies 3
Required by 1

Commit history 5

DateCommitCreditsLog message
7b5a3977f9 wiz *: recursive bump for pcre2 10.49
204ac6b2b7 tnn *: revbump for pcre2 symbol versioning change
5e4aea17e2 wiz *: recursive bump for pcre2 10.48
3e66ee70fa wiz libxmlb: update to 0.3.29.
Version 0.3.29 ~~~~~~~~~~~~~~ Released: 2026-07-27 New Features: Bugfixes: - Avoid stale query indexes when reloading the silo (Richard Hughes) - Clear the query cache when reloading the silo (Richard Hughes) - Correctly mark the silo as invalid when re-loading malformed data (Richard Hughes) - Fix building the silo when shared-mime-info is installed (Richard Hughes)
b42ab95093 wiz libxmlb: update to 0.3.28.
Version 0.3.28 ~~~~~~~~~~~~~~ Released: 2026-06-30 New Features: - Automatically add system locales when using native-langs (Richard Hughes) - Lower the Meson and GLib deps for RHEL-8 (Richard Hughes) Bugfixes: - Lazy clear opcode tokens for a ~2% speedup (Richard Hughes) - Speed up negative queries by 11% by defer creating the results objects (Richard Hughes) - Speed up predicates with no bindings by 9% (Richard Hughes) - Speed up the no-results query by 2.5% by using a constant error (Richard Hughes)