Skip to content

Conversation

@LilyFirefly
Copy link
Contributor

Follow up to #229.

@codspeed-hq
Copy link

codspeed-hq bot commented Sep 5, 2025

CodSpeed Instrumentation Performance Report

Merging #245 will not alter performance

Comparing LilyAcorn:rust-importscanner-review-fixes (d8fc3e0) with main (05b0f7d)

Summary

✅ 23 untouched benchmarks

Comment on lines -12 to +15
lazy_static! {
static ref ENCODING_RE: Regex = Regex::new(r"^[ \t\f]*#.*?coding[:=][ \t]*([-_.a-zA-Z0-9]+)").unwrap();
}
static ENCODING_RE: LazyLock<Regex> = LazyLock::new(|| {
Regex::new(r"^[ \t\f]*#.*?coding[:=][ \t]*([-_.a-zA-Z0-9]+)").unwrap()
});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

RwLock::new(StringInterner::default());
static ref EMPTY_MODULE_TOKENS: FxHashSet<ModuleToken> = FxHashSet::default();
static ref EMPTY_IMPORT_DETAILS: FxHashSet<ImportDetails> = FxHashSet::default();
static ref EMPTY_IMPORTS: FxHashSet<(ModuleToken, ModuleToken)> = FxHashSet::default();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

EMPTY_IMPORTS was unused, so I've removed it.

Copy link
Collaborator

@seddonym seddonym left a comment

Choose a reason for hiding this comment

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

Good stuff, thanks!

@seddonym seddonym merged commit e7e1d8d into python-grimp:main Sep 5, 2025
18 checks passed
@LilyFirefly LilyFirefly deleted the rust-importscanner-review-fixes branch September 5, 2025 11:33
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