Skip to content
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

[5.x] Collection handle and route optimizations #9641

Merged
merged 6 commits into from
Mar 12, 2024
Merged

[5.x] Collection handle and route optimizations #9641

merged 6 commits into from
Mar 12, 2024

Conversation

JohnathonKoster
Copy link
Contributor

This PR simplifies the collection's handle method to avoid the overhead of fluent/getter setter since it is called frequently. Additionally, this PR caches the results of the computed routes to avoid all of that extra work each time routes() is called.

@JohnathonKoster JohnathonKoster mentioned this pull request Mar 2, 2024
37 tasks
Copy link
Member

@jasonvarga jasonvarga left a comment

Choose a reason for hiding this comment

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

Please target master and adjust the PR title to show [5.x].

@JohnathonKoster JohnathonKoster changed the base branch from 4.x to master March 8, 2024 01:06
@JohnathonKoster JohnathonKoster changed the title [4.x] Collection handle and route optimizations [5.x] Collection handle and route optimizations Mar 8, 2024
@jasonvarga jasonvarga dismissed their stale review March 11, 2024 16:56

Requested changes were made.

@jasonvarga jasonvarga merged commit 69e132f into statamic:master Mar 12, 2024
16 checks passed
@jasonvarga jasonvarga deleted the collection-class-optimizations branch March 12, 2024 17:28
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.

2 participants