Skip to content

Conversation

robertbastian
Copy link
Member

@robertbastian robertbastian commented Aug 27, 2025

Alternative to #6902

This defers the lookups in zones, names, rules, and regions from the constructor, only storing the index in the Zone struct.

This will cost an additional lookup at the beginning of each zone operation, but these are fairly lookup-heavy already anyway. It also saves the lookups for name and region, which are probably only needed very rarely. In exchange, the size of Zone gets significantly decreased.

Also adds a RawZone abstraction which can be GIGO converted to and from Zone, with the invariant being that the same ZoneInfo64 instance is used throughout. Users like temporal can combine this with a static LazyLock<ZoneInfo64> to provide a safe wrapper with minimal size.

@robertbastian robertbastian requested a review from a team as a code owner August 27, 2025 10:13
Copy link

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

Copy link
Member

@Manishearth Manishearth left a comment

Choose a reason for hiding this comment

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

I don't think reducing the size gets us anything; temporal_rs wants a usize here, and no lifetime.

Manishearth
Manishearth previously approved these changes Aug 28, 2025
@Manishearth
Copy link
Member

Meeting minutes: #6902 (comment)

Copy link
Member

@Manishearth Manishearth left a comment

Choose a reason for hiding this comment

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

nice, good call on the parts

@robertbastian robertbastian merged commit 1de4bf5 into unicode-org:main Aug 28, 2025
32 checks passed
@robertbastian robertbastian deleted the smallzone branch August 28, 2025 18:57
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