Skip to content

Optimized combining of listeners #6112

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

Conversation

JavierLeon9966
Copy link
Contributor

Introduction

Helping the #6092 PR.

@@ -130,26 +129,24 @@ public function getListenerList() : array{
}

$listenersByPriority = [];
$concurrentAsyncListenersByPriority = [];
Copy link
Member

Choose a reason for hiding this comment

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

Are you sure we want 34-character-long variable names?

Copy link
Contributor Author

@JavierLeon9966 JavierLeon9966 Oct 23, 2023

Choose a reason for hiding this comment

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

The other option is to make $listenersByPriorityByType[0], $listenersByPriorityByType[1], and $listenersByPriorityByType[0] but if we don't hardcode these values it would make it longer than before.

Copy link
Member

Choose a reason for hiding this comment

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

Do we actually need to mention all four keywords ("concurrent", "async", "priority", "listener") in the same variable name?

Copy link
Member

Choose a reason for hiding this comment

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

I don't think so, we have to find shorter terms.

@ShockedPlot7560
Copy link
Member

Superseded by aaa37ba

@ShockedPlot7560 ShockedPlot7560 added Category: Core Related to internal functionality Type: Fix Bug fix, typo fix, or any other fix Resolution: Obsolete Superseded by other changes labels Oct 27, 2023
@JavierLeon9966 JavierLeon9966 deleted the optimize-listeners branch February 13, 2024 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Core Related to internal functionality Resolution: Obsolete Superseded by other changes Type: Fix Bug fix, typo fix, or any other fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants