Skip to content

poll: fetch method ptr directly#22816

Merged
Girgias merged 2 commits into
php:masterfrom
Girgias:2026-07-poll_handler_call_known_zend_function
Jul 20, 2026
Merged

poll: fetch method ptr directly#22816
Girgias merged 2 commits into
php:masterfrom
Girgias:2026-07-poll_handler_call_known_zend_function

Conversation

@Girgias

@Girgias Girgias commented Jul 19, 2026

Copy link
Copy Markdown
Member

Rather than going through a whole callability check via call_user_function() we can grab the known method pointer and call it directly.

This removes some allocations

Rather than going through a whole callability check via call_user_function() we can grab the known method pointer and call it directly.

This removes some allocations
@Girgias
Girgias marked this pull request as ready for review July 19, 2026 23:03
@Girgias
Girgias requested a review from bukka as a code owner July 19, 2026 23:03
Comment thread main/poll/poll_handle.c Outdated
Comment thread main/poll/poll_handle.c
@bukka

bukka commented Jul 20, 2026

Copy link
Copy Markdown
Member

Ah think this is actually dead code anyway as I disallowed user space creation so it's more leftover from the time when I was using abstract PollHandle class but then it got changed to the marker interface that userpace cannot implement. It might need some clean up though.

@Girgias
Girgias merged commit 55183b9 into php:master Jul 20, 2026
17 of 18 checks passed
@Girgias
Girgias deleted the 2026-07-poll_handler_call_known_zend_function branch July 20, 2026 13:32
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