Skip to content

Improve performance of Assertion Chain class#318

Merged
beberlei merged 1 commit intobeberlei:masterfrom
scyzoryck:feature/improve-performance-for-lazy-assertions
Dec 16, 2021
Merged

Improve performance of Assertion Chain class#318
beberlei merged 1 commit intobeberlei:masterfrom
scyzoryck:feature/improve-performance-for-lazy-assertions

Conversation

@scyzoryck
Copy link
Copy Markdown
Contributor

Hello!

During testing performance of the package with PHPBench I've realised that Reflections methods and checking if method exists takes a lot of time. With the simple fixes we can cut execution time by around 10-15% for lazy assertions.

Benchmark can be found here: scyzoryck/php-validators-benchmark

I'm attaching blackfire profiles:

@scyzoryck
Copy link
Copy Markdown
Contributor Author

@beberlei - is there any change to take a look at this changes, please? :)

@beberlei beberlei merged commit fc352a3 into beberlei:master Dec 16, 2021
@beberlei
Copy link
Copy Markdown
Owner

@scyzoryck thank you very much! 🙇

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