Skip to content

Conversation

@mstange
Copy link
Contributor

@mstange mstange commented Dec 8, 2025

This is a performance optimization. It does not affect the API, does not change behavior, and does not add dependencies.

https://bugzilla.mozilla.org/show_bug.cgi?id=2004779

@mstange mstange force-pushed the store-packaged-timestamp-separately branch 3 times, most recently from 165b764 to 9c07c36 Compare December 12, 2025 19:08
@mstange mstange marked this pull request as ready for review December 12, 2025 21:16
@mstange
Copy link
Contributor Author

mstange commented Dec 12, 2025

This is now ready for review.

…ed, by storing the timestamp in a separate file.
@mstange mstange force-pushed the store-packaged-timestamp-separately branch from 9c07c36 to 7b3119c Compare December 15, 2025 18:22
@bendk bendk requested a review from gruberb December 15, 2025 18:24
Copy link
Member

@gruberb gruberb left a comment

Choose a reason for hiding this comment

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

LGTM 👍

.and_then(|data| serde_json::from_str(data).ok())
let str_data = Self::get_packaged_data(&self.collection_name)?;
let data: CollectionData = serde_json::from_str(str_data).ok()?;
debug_assert_eq!(data.timestamp, self.load_packaged_timestamp().unwrap());
Copy link
Member

Choose a reason for hiding this comment

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

Nice use of debug_assert_eq! :)

@bendk bendk added this pull request to the merge queue Dec 16, 2025
Merged via the queue into mozilla:main with commit 6087f7c Dec 16, 2025
13 checks passed
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