Skip to content

Conversation

@stloyd
Copy link
Member

@stloyd stloyd commented Oct 19, 2023

Change Log

Added

Fixed

Changed

  • Improve quality of snappy implementation

Removed

Deprecated

Security


Description

@norberttech
Copy link
Member

Hmm, looking at those changes, I don't think this will bring any visible performance improvements into the general implementation. It makes the code slightly cleaner (and it's a good enough reason to merge it), but it seems irrelevant from the entire algorithm performance point of view.
Have you tried to execute the benchmark from readme to see if there was any improvement?

@stloyd
Copy link
Member Author

stloyd commented Oct 19, 2023

Yes, both profiles were generated using the example from the readme with just small adjustments (hardcoded faker data & skip of extension run).

@norberttech
Copy link
Member

Is there any performance impact on the initial benchmark?

@norberttech
Copy link
Member

I'm gonna merge this regardless, however, if there is no visible performance impact, I would rename this PR and changelog into "improve code readability of snappy implementation" from "improve performance of snappy implementation".
But if there is any impact on the original benchmark, then let's make it clear in the description how much it improved the performance.
The screenshot of the profile does not clearly answer that question as it does not even show what was the portion of data used in that profile. -272ms from 6s and millions of executions is almost not relevant, however -272ms from 300ms sounds like a big win.

@stloyd stloyd changed the title Improve performance of snappy implementation Improve quality of snappy implementation Oct 19, 2023
@stloyd stloyd force-pushed the feature/snappy-perf branch from 2414d0b to ad6409d Compare October 19, 2023 15:36
@stloyd
Copy link
Member Author

stloyd commented Oct 19, 2023

@norberttech I have renamed the commit & PR, cause I could not reproduce the result enough (used also sampling in profiler) to confirm performance improvements.

@stloyd stloyd requested a review from norberttech October 19, 2023 15:38
@norberttech norberttech merged commit 7e769a7 into flow-php:1.x Oct 19, 2023
@norberttech
Copy link
Member

Thanks!

@stloyd stloyd deleted the feature/snappy-perf branch October 19, 2023 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants