Skip to content

Re-implement siku_subjects_display in Rust#3100

Merged
christinach merged 1 commit intomainfrom
siku
Mar 10, 2026
Merged

Re-implement siku_subjects_display in Rust#3100
christinach merged 1 commit intomainfrom
siku

Conversation

@sandbergja
Copy link
Member

This implementation is about the same speed as the Ruby implementation.

This commit also includes an optimization for the trim_punctuation function -- we can avoid a regular expression in favor of Rust's string methods like strip_prefix.

This implementation is about the same speed as the Ruby implementation.

This commit also includes an optimization for the trim_punctuation
function -- we can avoid a regular expression in favor of Rust's
string methods like strip_prefix.
Copy link
Member

@christinach christinach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sandbergja 🍄 !

@@ -1,4 +1,4 @@
use std::sync::LazyLock;
use std::{borrow::Cow, sync::LazyLock};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐮

@christinach christinach merged commit 9ba2bc1 into main Mar 10, 2026
10 checks passed
@christinach christinach deleted the siku branch March 10, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants