Skip to content

Conversation

@jackxxu
Copy link
Contributor

@jackxxu jackxxu commented Jul 14, 2014

Use Newark Application class variables directly

Currently, in a Newark app, three class variables routes,before_hooks, and after_hooks are used to store system-level variables. This PR is intended to leverage these class instance variables directly instead of creating a copy of these variables upon each request. The clear benefit is to presumably make it more efficient and smaller memory footprint.

## Use Newark Application class variables directly

Currently, in a Newark app, three class variables `routes`,
`before_hooks`, and `after_hooks` are used to store system-level
variables. This PR is intended to leverage these class instance
variables directly instead of creating a copy of these variables upon
each request. The clear benefit is to presumably make it more efficient
and smaller memory footprint.
@jackxxu
Copy link
Contributor Author

jackxxu commented Jul 14, 2014

now I look at it, I don't think this PR actually saves much RAM footprint at all, but I do think it can be more efficient in executing.

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.

1 participant