[英]What are the performance benefits wrt compile-time binding when we use SLF4J or Log4J in Spring instead of JCL?
Spring documentations states: Spring文档指出:
SLF4J is a cleaner dependency and more efficient at runtime than commons-logging because it uses compile-time bindings instead of runtime discovery of the other logging frameworks it integrates. SLF4J是一个更清洁的依赖项,并且在运行时比公共记录更高效,因为SLF4J使用编译时绑定而不是在运行时发现它所集成的其他日志记录框架。
Allegedly there is also a performance benefit because the bindings are at compile-time not runtime. 据说还有性能上的好处,因为绑定是在编译时而不是运行时。
What exactly does this compile time binding mean here? 编译时绑定在这里到底意味着什么? And how does it impact the performance?
以及它如何影响性能?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.