Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(importer) Minor performance improvements for FileNameProducer #8353

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

paw-hub
Copy link
Contributor

@paw-hub paw-hub commented Jan 22, 2025

This should make FileNameProducer slightly more performant:

  • Use Path::file_stem to get the filename without needing to clone path.
  • Use format macro for building strings to reduce allocations.

@paw-hub paw-hub force-pushed the filename-producer-perf branch from d9ee307 to 35c3d6b Compare January 22, 2025 17:42
@paw-hub paw-hub changed the title Minor performance improvements for filename_producer.rs Minor performance improvements for importer Jan 22, 2025
@paw-hub paw-hub force-pushed the filename-producer-perf branch from 35c3d6b to 7bbe8d8 Compare January 22, 2025 17:48
@paw-hub paw-hub changed the title Minor performance improvements for importer Minor performance improvements for FileNameProducer Jan 22, 2025
@paw-hub paw-hub changed the title Minor performance improvements for FileNameProducer (importer) Minor performance improvements for FileNameProducer Jan 22, 2025
@paw-hub paw-hub force-pushed the filename-producer-perf branch 4 times, most recently from 27b67ff to 054a011 Compare January 23, 2025 08:35
@paw-hub
Copy link
Contributor Author

paw-hub commented Jan 23, 2025

oops meant to rebase on master

This should make FileNameProducer slightly more performant:

- Use Path::file_stem to get the filename without needing to clone path.
- Use format macro for building strings to reduce allocations.
@paw-hub paw-hub force-pushed the filename-producer-perf branch from 054a011 to 51b4669 Compare January 23, 2025 16:44
@paw-hub paw-hub merged commit 51b4669 into master Jan 24, 2025
5 checks passed
@paw-hub paw-hub deleted the filename-producer-perf branch January 24, 2025 11:56
@hrb-hub hrb-hub added this to the 262.250124.0 (Mailbox Export) milestone Jan 27, 2025
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.

3 participants