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

fix: add Lazy-load Axe::API::Run to improve boot time #396

Merged
merged 19 commits into from
Aug 13, 2024
Merged

Conversation

scottmries
Copy link
Contributor

It saves 95% of load time when doing require "axe-rspec".

The time is actually spent loading the virtus library. Deferring the loading of Axe::API::Run until needed does in turn defer the loading of virtus library.

No QA required.

@scottmries scottmries marked this pull request as ready for review July 23, 2024 15:35
@scottmries scottmries requested a review from a team as a code owner July 23, 2024 15:35
michael-siek
michael-siek previously approved these changes Jul 23, 2024
Copy link
Member

@stephenmathieson stephenmathieson left a comment

Choose a reason for hiding this comment

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

We should give @cbliard credit as they originally wrote this fix.

git commit --author="Christophe Bliard <[email protected]>"

See https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---authorltauthorgt

@scottmries scottmries enabled auto-merge (squash) August 13, 2024 17:50
@scottmries scottmries dismissed stephenmathieson’s stale review August 13, 2024 17:52

Requested changes are in place with approval.

@scottmries scottmries merged commit f16172e into develop Aug 13, 2024
6 checks passed
@scottmries scottmries deleted the cbliard-fork branch August 13, 2024 17:52
@github-actions github-actions bot mentioned this pull request Aug 13, 2024
michael-siek added a commit that referenced this pull request Aug 13, 2024
##
[4.10.0](v4.9.1...v4.10.0)
(2024-08-13)


### Features

* Update axe-core to v4.10.0
([#397](#397))
([09e659e](09e659e))


### Bug Fixes

* add `Lazy-load Axe::API::Run` to improve boot time
([#396](#396))
([f16172e](f16172e))
@dequejenn dequejenn mentioned this pull request Aug 21, 2024
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.

4 participants