Moving WordPress Plugin Compute to Rust FFI: An Experience Report on Sitemaps, Related Posts, and Redirects

Published 2026-09-20 · Version 5 of 6

You are viewing an earlier version. See the latest version (v6).

Creators: Jermaine Harris

Experience report timing three WordPress plugin kernels (XML sitemaps, related-posts scoring, and redirect lookup) as PHP fallbacks, PHP FFI into Rust cdylibs, and native Rust. On an i5-12600KF, sitemap FFI loses to PHP because of JSON marshalling; related-posts PHP is faster because it uses a weaker ranker; a redirect radix trie is about 700x faster than a linear PHP scan. Production WordPress was not cut over. Expanded A4 technical report with stdev tables and FFI architecture notes.

Files

No files are attached to this version yet.

Sources

Upstream datasets, APIs, and references cited by this record.

Version history

Version 6 of 6 · Latest · 20 Sep 2026, 20:38 UTC this page

Show earlier versions (5)