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

Tests/Core: performance improvement #354

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Feb 20, 2024

Description

For tests using the AbstractMethodUnitTest or AbstractTokenizerTestCase base classes the test case files only need to be parsed (tokenized), not processed (tokenized + sniffs being called).

While not a huge difference, changing the function call from File::process() to File::parse(), still shaves about 1/7 of the run time off the Core tests without this change having a detrimental effect on any of the tests.

Suggested changelog entry

N/A

For tests using the `AbstractMethodUnitTest` or `AbstractTokenizerTestCase` base classes the test case files only need to be parsed (tokenized), not processed (tokenized + sniffs being called).

While not a huge difference, changing the function call from `File::process()` to `File::parse()`, still shaves about 1/7 of the run time off the Core tests without this change having a detrimental effect on any of the tests.
@jrfnl jrfnl added this to the 3.9.x Next milestone Feb 20, 2024
@jrfnl jrfnl merged commit fa15cdd into master Feb 20, 2024
46 checks passed
@jrfnl jrfnl deleted the feature/tests-core-performance-improvement branch February 20, 2024 15:26
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.

None yet

1 participant