Skip to content

Use the new ZPP API in ext/ftp #3041

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

Closed
wants to merge 1 commit into from
Closed

Use the new ZPP API in ext/ftp #3041

wants to merge 1 commit into from

Conversation

carusogabriel
Copy link
Contributor

No description provided.

Z_PARAM_RESOURCE(z_ftp)
Z_PARAM_LONG(size)
Z_PARAM_OPTIONAL
Z_PARAM_ZVAL_DEREF_EX(zresponse, 0, 1)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The tests are failing here. What macro should we use?

@cmb69
Copy link
Member

cmb69 commented Jan 26, 2018

The Fast ZPP API improves performance at the cost of larger binaries. I'm not convinced that the new API should be applied everywhere, but only where it makes sense (i.e. for frequently called functions which execute very fast), what probably isn't the case for (most) FTP functions since their performance bottleneck is elsewhere. See also https://wiki.php.net/rfc/fast_zpp#proposal.

@carusogabriel
Copy link
Contributor Author

@cmb69 Thanks for explaining me, I didn't know that this comes from a RFC, and why we have both syntaxes in the core. But, it only speeds certainly kinds of functions, not all of them? Because the readability is so much easier with fast zzp 👍

@cmb69
Copy link
Member

cmb69 commented Jan 26, 2018

No, the new API would speed up all functions, but if the function takes a long time per se (that is, without the parameter parsing) the gain is minimal (I'd say neglectible). For otherwise fast functions, the gain can be impressive, though (cf. 0bf11d1).

@carusogabriel
Copy link
Contributor Author

@cmb69 So should I close this PR or wait for another reviewer?

@weltling
Copy link
Contributor

IMO the move to the fast ZPP API is not an improvement in this case, if not even a worsening. It would not affect the performance of the FTP operation, while affecting the binary size.

Thanks.

@carusogabriel
Copy link
Contributor Author

Closing as this is not an improvement.

Thanks, @cmb69 and @weltling for clarified things.

@carusogabriel carusogabriel deleted the zpp-api branch January 27, 2018 22:17
@weltling
Copy link
Contributor

@carusogabriel thanks for the PR in first place, and for the prudent handling. Keep up the good work!

Thanks.

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.

3 participants