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 number of queries and object allocations in request index page #4920

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

coalest
Copy link
Collaborator

@coalest coalest commented Jan 9, 2025

Doesn't resolve any issue.

Description

I noticed the /requests page was slow in development, so I made a few improvements.

Type of change

  • Performance refactor (behavior unaffected)

How Has This Been Tested?

Test suite and manually.

Screenshots

Locally, it went from ~2 seconds to ~300 ms for me.

Before:
Screenshot from 2025-01-09 16-00-55

After:
image

@coalest coalest changed the title Perf: Improve number of queries and object allocations in request index page Perf: Reduce number of queries and object allocations in request index page Jan 9, 2025
@coalest coalest requested a review from dorner January 9, 2025 15:07
@coalest coalest force-pushed the improve-requests-index-page-perf branch from aa6e65e to 0505ce6 Compare January 9, 2025 15:09
Copy link
Collaborator

@dorner dorner left a comment

Choose a reason for hiding this comment

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

Kind of a bunch of different things in here, but they all look pretty benign. Thanks!

@dorner dorner merged commit d605dca into rubyforgood:main Jan 10, 2025
11 checks passed
Copy link
Contributor

@coalest: Your PR Perf: Reduce number of queries and object allocations in request index page is part of today's Human Essentials production release: 2025.01.12.
Thank you very much for your contribution!

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.

2 participants