Skip to content

Conversation

@miaulalala
Copy link
Contributor

@miaulalala miaulalala commented Nov 20, 2025

addSelect(...$selects) calls count() and in_array() each time it is called, and it also creates a foreach loop for each function call.

By using the integrated spread operator for adding select aliases, we can reduce the amount of function calls.

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not possible
  • 📘 API documentation in docs/ has been updated or is not required
  • 🔖 Capability is added or not needed

addSelect() calls count and in_array each time it is called, and it also loops through each column.

By using the intergrated spread operator for adding select aliases, we can reduce the amount of function calls.

Signed-off-by: Anna Larch <[email protected]>
@nickvergessen nickvergessen merged commit 515fb2b into main Nov 20, 2025
82 checks passed
@nickvergessen nickvergessen deleted the fix/noid/use-array-spread-instead-of-method-calls branch November 20, 2025 15:53
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