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

Published 2026-09-20 · Version 4 of 5

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

Read PDF

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

FileSizeActions
01-wp-rust-ffi.pdf60.2 KBViewDownload
01-wp-rust-ffi-supplement.zip95.3 KBViewDownload

Version history

Each publish is kept as a snapshot. Use Latest unless you need an earlier file.