Metraipolis › archive › dc_8ac0f814080a

Where does a rust speedup come from? Language and algorithm effects in sliding window threat scorer — arXiv:2610.07931

Source
arXiv (en)
Original
https://arxiv.org/abs/2610.07931
License (as archived)
CC0-1.0
Archived
2026-10-07T11:35:12.071Z
SHA-256 of the archived text
9897d3dc54f809082af7b23ed01e1815e785396643a7a856b41f4e7269529de4
Stable URL of this page
https://metraipolis.com/documento/dc_8ac0f814080a

How to cite

Where does a rust speedup come from? Language and algorithm effects in sliding window threat scorer — arXiv:2610.07931 — arXiv (en), https://arxiv.org/abs/2610.07931 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_8ac0f814080a (Metraipolis archive dc_8ac0f814080a, sha256 9897d3dc54f809082af7b23ed01e1815e785396643a7a856b41f4e7269529de4)
BibTeX
@misc{dc8ac0f814080a,
  title = {Where does a rust speedup come from? Language and algorithm effects in sliding window threat scorer — arXiv:2610.07931},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2610.07931},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_8ac0f814080a; sha256 9897d3dc54f809082af7b23ed01e1815e785396643a7a856b41f4e7269529de4},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.07931. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Rewriting a hot path from Python into Rust is a common way to speed up security analytics, and large speedups are routinely reported. A rewrite usually changes the language and the algorithm at once, so a single factor can credit the language with a gain that comes from a better algorithm. We study this on a sliding window threat scorer modelled on the traffic light calculator of the SentinelSphere platform. Five implementations, three in Python and two in Rust, produce bit identical scores, confirmed by a shared checksum, and we time them from 100 to one million events in a bounded and a burst regime. The language alone contributes between about 4 and 29 times. Replacing a per event rescan of the window by an incremental update contributes more than 11,000 times in the burst regime, so the end to end factor reaches about 195,000 times when the window keeps filling and levels off near 13,000 times when it does not. A power law fit to the timings reported for the original rewrite gives growth exponents of 1.85 for Python and 0.88 for Rust, the signature of an algorithmic difference. Performance claims for security tooling should therefore report the language and algorithm contributions separately.

Tema degli esploratori: fiducia digitale e crittografia (elenco arXiv cs.CR, nuovi lavori del giorno).
Categorie arXiv: Cryptography and Security (cs.CR).
Pagina del lavoro: https://arxiv.org/abs/2610.07931 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-07T11:18:39.679Z dalla pagina https://arxiv.org/list/cs.CR/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).