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

*: use crtime.NowMono instead of time.Now #4124

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

RaduBerinde
Copy link
Member

This commit updates crlib and changes the "production" parts of pebble
to use crtime.Mono instead of time.Time or unix nanos. NowMono()
is about 2x faster than time.Now (and is much cleaner than working
with unix nanos).

Informs cockroachdb/cockroach#133315

@RaduBerinde RaduBerinde added the o-perf-efficiency Related to performance efficiency label Oct 31, 2024
@RaduBerinde RaduBerinde requested a review from a team as a code owner October 31, 2024 04:00
@cockroach-teamcity
Copy link
Member

cockroach-teamcity commented Oct 31, 2024

This change is Reviewable

This commit updates crlib and changes the "production" parts of pebble
to use `crtime.Mono` instead of `time.Time` or unix nanos. `NowMono()`
is about 2x faster than `time.Now` (and is much cleaner than working
with unix nanos).

Informs cockroachdb/cockroach#133315
Copy link
Collaborator

@jbowens jbowens left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 13 of 17 files at r1, all commit messages.
Reviewable status: 13 of 17 files reviewed, all discussions resolved (waiting on @aadityasondhi)

@RaduBerinde RaduBerinde merged commit ddcd530 into cockroachdb:master Nov 4, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
o-perf-efficiency Related to performance efficiency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants