Skip to content

Optimize make_date #9089

@alamb

Description

@alamb

Is your feature request related to a problem or challenge?

I think there is significant performance to be had when creating dates and now thanks to @Omega359 there are benchmarks

To run the benchmarks, do:

cargo bench --bench make_date

Describe the solution you'd like

Make the function faster, as defined by the command above

The high level procedure for this is to profile the function and figure out how to make it go faster while still computing the same results

Describe alternatives you've considered

It may not be possible to make this faster and in that case no worries.

Additional context

I think this is actually a pretty good initial project for someone because

  1. The code is relatively straightforward
  2. The benchmark is in place

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions