-
Notifications
You must be signed in to change notification settings - Fork 16
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
Performance/placeholders #97
Conversation
plugin/src/main/java/com/iridium/iridiumcore/utils/Placeholder.java
Outdated
Show resolved
Hide resolved
@@ -11,8 +13,10 @@ | |||
public class Placeholder { | |||
|
|||
private final String key; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semi breaking change, nothing should reference the key directly, but key is without percent signs, formattedKey is with signs
@boiscljo I'm sorry, I don't understand pretty much PR but, I saw the code (from 2 PR that you made) and it's seems that it can improve the performance. Please go on to push this asap beucase I have a large network that is lagging a lot because of that. I appreciate too much! |
if(value==null && supplier!=null) value = supplier.get(); | ||
return value; | ||
return value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a case where both value and supplier can be null here now no? Is this an issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's an issue with normal placeholder it will just return null without throwing
No description provided.