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

PlainArray and AssocArray lazy evaluation #45

Merged
merged 8 commits into from
Mar 2, 2021

Conversation

dazet
Copy link
Member

@dazet dazet commented Feb 25, 2021

No description provided.

@dazet dazet marked this pull request as ready for review February 27, 2021 13:52
@dazet dazet changed the title ArrayValue lazy evaluation PlainArray and AssocArray lazy evaluation Feb 27, 2021
@dazet dazet self-assigned this Feb 28, 2021
BENCHMARKS.md Outdated
ArrayValueBench | arrayDiffSubsetFunction | 1000 | 3,220,360b | 0.19ms | 1.00x
ArrayValueBench | arrayDiffSubsetWrapped | 1000 | 3,869,672b | 0.25ms | 1.32x
ArrayValueBench | arrayDiffComparatorFunction | 1000 | 3,535,792b | 103.11ms | 542.65x
ArrayValueBench | arrayDiffComparatorWrapped | 1000 | 3,870,264b | 102.03ms | 536.98x
Copy link
Member

Choose a reason for hiding this comment

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

That's a big performance degradation :O

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it's strange but it's the same with plain PHP.

This benchmark is on PHP8, different machine then previous, still it seems like degradation of array_udiff or performance improvement of array_diff 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

I've fixed the benchmarks without xdebug 🐗

@dazet dazet merged commit 2ad4775 into gowork:master Mar 2, 2021
@dazet dazet deleted the feature/arrayable branch March 2, 2021 21:17
@bronek89 bronek89 added this to the 0.5 milestone Mar 2, 2021
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.

3 participants