简体   繁体   中英

What are the performance benefits wrt compile-time binding when we use SLF4J or Log4J in Spring instead of JCL?

Spring documentations states:

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.

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM