Document Library low performance on view document detail

I attached VisualVM screenshots. It improves performance a bit on trunk, but it will caused a big performance improvement on ga2.