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

Fast index view search #102

Merged
merged 5 commits into from
Jan 18, 2017
Merged

Fast index view search #102

merged 5 commits into from
Jan 18, 2017

Conversation

kohsuke
Copy link
Member

@kohsuke kohsuke commented Jan 15, 2017

This PR builds on top of PR #101 to improve the request routing performance by resolving the available index view routes upfront.

That is, instead of looking for a presence of index.jelly (and the likes) at the request processing time, this change makes that check happen during MetaClass construction time.

The presence of index.html in a side file can be tested eagerly to avoid
checking it at runtime. Since this feature is rarely used, this results
in a performance gain.

See: #97
Make IndexViewDispatcher a facet-local thing.
Move the logic that adds IndexViewDispatcher to Facet so that Facet
subtypes can do this better.
Statically determine if index view page exists, and add a dispatcher
only if so.
@kohsuke
Copy link
Member Author

kohsuke commented Jan 15, 2017

Tested with the tip of Jenkins to make sure all the tests pass

@kohsuke
Copy link
Member Author

kohsuke commented Jan 16, 2017

@reviewbybees

@ghost
Copy link

ghost commented Jan 16, 2017

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

@jglick jglick merged commit d13c2e6 into avoid-facet-search Jan 18, 2017
@jglick jglick deleted the fast-facet-search branch January 18, 2017 21:15
jglick added a commit that referenced this pull request Jan 18, 2017
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