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

perf: reduce min / max loops #7607

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

VIKTORVAV99
Copy link
Member

Issue

We are mapping over some objects twice to calculate the min, and then once again for the max value.

We can simplify this to one loop/map and then pass the mapped values to both functions.

Description

Reduces the looping and uses more functional syntax.

Double check

  • I have run pnpx prettier@2 --write . and poetry run format in the top level directory to format my changes.

Choose a reason for hiding this comment

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant