Re: [hibernate-dev] Bad boot performance since 5.4 switched to ByteBuddy

Scott Marlow <[email protected]>
Newsgroups gmane.comp.java.hibernate.devel
Message-ID <CAJtdNN6kT+5YvfSnCWwAwC9QmObZB9Z5cLrUmG82JZ20sp6oNA@mail.gmail.com>
On Tue, Aug 4, 2020, 11:27 AM Christian Beikov <[email protected]>
wrote:

> I'm moving this discussion from Zulip to the mailing list as Rafael does
> not seem to be on Zulip.


Try to ping him on Twitter then with a link to this email thread.  Ask him
what your options are to improve proxy generation performance.

See comment below also.

Here a little context:
>
>  > Does anyone know if there is a known performance issue with Bytebuddy
> during boot in 5.4? I noticed that 5.4 takes about 25%, sometimes up to
> 30% percent longer to boot, even when using a prebuilt Jandex index,
> apparently due to the use of Bytebuddy
>
>  > @Moritz Becker found the issue while trying to find out why our
> Blaze-Persistence testsuite runs into CI timeouts with 5.4 but not with 5.3
>
>  > So AFAIK, the PojoEntityTuplizer builds the proxy class through
> org.hibernate.proxy.pojo.bytebuddy.ByteBuddyProxyHelper#buildProxy which
> takes significantly longer than the javassist implementation
>

Have you tried using ByteBuddy ASM API directly to see if that is
significantly faster to build the proxy?

Scott


> I haven't tried it yet, but it seems to me that making the
> byteBuddyState in
> org.hibernate.bytecode.internal.bytebuddy.BytecodeProviderImpl static
> might help. I'd guess this will help with the test execution time for
> the Hibernate testsuite as well.
>
> Any idea how to improve this @Rafael ?
>
> Regards,
>
> Christian
>
> _______________________________________________
> hibernate-dev mailing list
> [email protected]
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.