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

improve(logger/log4j): use reusable message for better performance #1880

Merged
merged 1 commit into from
Feb 12, 2022

Conversation

AdoptOSS
Copy link
Contributor

优化性能
另,根据log4j2的设计,marker为null直接传递即可,无需判断
reference:
AbstractLoggerTest.java#L109

@Him188 Him188 added s:core 子系统: mirai-core t:enhancement 类型: 现有功能上的优化 labels Feb 12, 2022
@Him188 Him188 added this to the 2.11.0-RC milestone Feb 12, 2022
@Him188 Him188 merged commit 4586203 into mamoe:dev Feb 12, 2022
@Him188 Him188 modified the milestones: 2.11.0-RC, 2.11.0-M1 Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s:core 子系统: mirai-core t:enhancement 类型: 现有功能上的优化
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants