Skip to content
This repository was archived by the owner on Mar 28, 2024. It is now read-only.

Conversation

@olivierjacob
Copy link
Contributor

When profiling eve, @kkrawczy noticed that a lot of time was spent in the YearFraction computations.
Some of the functions were making use of date methods like Day(), Month(), Year(). These methods make a subsequent call to absDate each time, which seems to be slow.

This PR aims at replacing these repetitive calls by a unique call to Date() which returns the three components needed for the year fraction compution (day, month and year).

This is a tiny improvement, but every millisecond saved is a step towards our under 10s goal :)

@olivierjacob olivierjacob self-assigned this Dec 20, 2023
@olivierjacob olivierjacob requested a review from a team as a code owner December 20, 2023 12:44
@olivierjacob olivierjacob merged commit 5c9b25c into main Dec 20, 2023
@olivierjacob olivierjacob deleted the feat-caching-daycounter branch December 20, 2023 13:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants