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

feat(routing): New router architecture and faster default router #484

Merged
merged 1 commit into from
Apr 15, 2015

Conversation

kgriffs
Copy link
Member

@kgriffs kgriffs commented Apr 13, 2015

This replaces the routing logic with a new, faster strategy based on on-the-fly
generation of Python code. As part of replacing the logic, the architecture has
been refactored to decouple routing from falcon.API, thereby making it possible
for users to easily replace the default router with their own.

Closes #114

Co-Authored-By: Kurt Griffiths mail@kgriffs.com

from falcon.hooks import _wrap_with_hooks
from falcon import HTTP_METHODS, responders

from .compiled import CompiledRouter
Copy link
Member

Choose a reason for hiding this comment

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

For consistency, it would probably be good to not use a relative import.

@jmvrbanac
Copy link
Member

Other than the relative import issue, LGTM.

@kgriffs
Copy link
Member Author

kgriffs commented Apr 14, 2015

@jmvrbanac Fixed the relative import. I still need to update the API class docstring.

@kgriffs kgriffs force-pushed the routing branch 4 times, most recently from fcd818f to 38ac112 Compare April 15, 2015 20:55
This replaces the routing logic with a new, faster strategy based on on-the-fly
generation of Python code. As part of replacing the logic, the architecture has
been refactored to decouple routing from falcon.API, thereby making it possible
for users to easily replace the default router with their own.

Closes falconry#114

Co-Authored-By: Kurt Griffiths <mail@kgriffs.com>
@jmvrbanac
Copy link
Member

👍 LGTM

jmvrbanac added a commit that referenced this pull request Apr 15, 2015
feat(routing): New router architecture and faster default router
@jmvrbanac jmvrbanac merged commit 0c6edb6 into falconry:master Apr 15, 2015
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.

Routing tree
3 participants