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

Performance/placeholders #97

Merged
merged 7 commits into from
Dec 27, 2024
Merged

Performance/placeholders #97

merged 7 commits into from
Dec 27, 2024

Conversation

boiscljo
Copy link
Contributor

No description provided.

@@ -11,8 +13,10 @@
public class Placeholder {

private final String key;
Copy link
Contributor Author

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

@austv
Copy link

austv commented May 19, 2024

@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!

Comment on lines 58 to +59
if(value==null && supplier!=null) value = supplier.get();
return value;
return value;
Copy link
Member

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?

Copy link
Contributor Author

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

@PeachesMLG PeachesMLG merged commit 94b9620 into master Dec 27, 2024
1 of 2 checks passed
@PeachesMLG PeachesMLG deleted the performance/placeholders branch December 27, 2024 21:54
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.

3 participants