Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Conversation

@rajeshbalamohan
Copy link

For custom attributes, currently {{LDUSer::getValueForEvaluation}} checks for {{UserAttribute}} first and moves on to check "custom" attributes.

As a part of this, it always encounters "IllegalArguementException" which ends up populating the entire stacktrace (which could be 100s in size). This turns out to be very expensive depending on the number of calls.

It would be good consider, where custom attributes are checked first and then check the user attribute. This way, we do not need to pay the penalty of filling up the stack trace for every call involving custom attribute.

@rajeshbalamohan
Copy link
Author

Can a committer help with review please?

@eli-darkly
Copy link
Contributor

eli-darkly commented Mar 1, 2018

Checking the custom attributes first isn't an option, because it's important that a custom attribute should never override a standard attribute with the same name. But I agree that triggering unnecessary throws/catches should be avoided, so we'll put up a somewhat different fix for this. Thanks for finding the problem.

@eli-darkly
Copy link
Contributor

This has been fixed in releases 2.6.1 and 3.0.2.

@eli-darkly eli-darkly closed this Mar 1, 2018
eli-darkly pushed a commit that referenced this pull request Feb 21, 2019
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.

3 participants