Sanne/hibernate-core — comment on commit fcac23d507c864788cb2ed97fd7fedecb46d723e
File: hibernate-core/src/main/java/org/hibernate/cfg/AnnotationBinder.java line 266
By jpav:

I don't think the choice between the two is that important either; I was more concerned with being consistent with how we approached this in core, but if Emmanuel already utilized the other approach, I guess that ship has sailed. Only other distinction would be there's a bit more functionality available with the %s approach in certain situations, like when dealing with dates and times. I agree that performance is really a concern.

On Oct 17, 2011, at 3:41 PM, Sanne Grinovero wrote:

> I couldn't find the docs, but you're the expert on logging. likely %s is better but @emmanuelbernard is standardizing on the {0} notation in other code as it's more readable. Since the performance difference between _%s_ vs _{0}_ is only going to affect people logging at trace level enabled, they are screwed anyway so I don't think we should care for one vs the other, other than for our own sake of code readability.
>
> --
> Reply to this email directly or view it on GitHub:
> https://github.com/Sanne/hibernate-core/commit/fcac23d507c864788cb2ed97fd7fedecb46d723e#commitcomment-656847