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

refactor: better and more performant svg finder #3177

Merged
merged 4 commits into from
Aug 22, 2024

Conversation

adrianthedev
Copy link
Collaborator

Description

In this PR we are caching in memory the svgs based on the filename as they shouldn't change once the app has booted.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

Copy link

codeclimate bot commented Aug 22, 2024

Code Climate has analyzed commit 3075375 and detected 0 issues on this pull request.

View more on Code Climate.

lib/avo/svg_finder.rb Outdated Show resolved Hide resolved
lib/avo/svg_finder.rb Outdated Show resolved Hide resolved
Copy link
Contributor

@Paul-Bob Paul-Bob left a comment

Choose a reason for hiding this comment

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

LGTM!

@adrianthedev adrianthedev merged commit 750bf68 into main Aug 22, 2024
14 of 15 checks passed
@adrianthedev adrianthedev deleted the refactor/more-performant-svg-finder branch August 22, 2024 15:33
Copy link
Contributor

This PR has been merged into main. The functionality will be available in the next release.

Please check the release guide for more information.

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.

2 participants