Skip to content
This repository has been archived by the owner on Dec 9, 2017. It is now read-only.

Modify Namespace method missing, only use caller when error #83

Merged
merged 1 commit into from Nov 6, 2013

Conversation

jcredding
Copy link
Member

This changes the namespace's method missing to only call the
caller when an exception occurs. This is more efficient and
speeds up all access to reading/writing namespace options. This
is an internal change so no tests had to be modified. There are
already tests that ensure the behavior for raising no method
errors and setting the backtrace to the caller is still working.

Closes #82

This changes the namespace's method missing to only call the
`caller` when an exception occurs. This is more efficient and
speeds up all access to reading/writing namespace options. This
is an internal change so no tests had to be modified. There are
already tests that ensure the behavior for raising no method
errors and setting the backtrace to the caller is still working.

Closes #82
@kellyredding
Copy link
Member

@jcredding good by me - nice catch.

jcredding added a commit that referenced this pull request Nov 6, 2013
Modify `Namespace` method missing, only use `caller` when error
@jcredding jcredding merged commit 9c5fab3 into master Nov 6, 2013
@jcredding jcredding deleted the jcr-ns-meth-miss-no-caller branch November 6, 2013 19:43
jcredding added a commit that referenced this pull request Nov 6, 2013
* Namespace method missing, don't get `caller` unless needed (#83)

/cc @kellyredding
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When reading namespace methods, don't call the caller till it's needed
2 participants