Re: [hibernate-dev] [HV] Memory footprint improvements

2017-08-02 Thread Guillaume Smet
On Wed, Aug 2, 2017 at 7:17 PM, Emmanuel Bernard wrote: > You would need to hardcode the definition of Object in HV's code. It's > unclear to me that it would not be detrimental. I'd keep the model generic. > And favor metadata recomputation over caching. I went the "only cache the Object metad

Re: [hibernate-dev] [HV] Memory footprint improvements

2017-08-02 Thread Emmanuel Bernard
You would need to hardcode the definition of Object in HV's code. It's unclear to me that it would not be detrimental. I'd keep the model generic. And favor metadata recomputation over caching. > On 2 Aug 2017, at 12:49, Sanne Grinovero wrote: > > Just nitpicking, as I guess skipping a single

Re: [hibernate-dev] [HV] Memory footprint improvements

2017-08-02 Thread Sanne Grinovero
On 23 July 2017 at 21:23, Guillaume Smet wrote: > On Sat, Jul 22, 2017 at 2:44 PM, Sanne Grinovero > wrote: >> >> I'm not familiar enough with the whole picture but I strongly suspect you >> should explore ways to get out of this lazy initialization strategy. > > > We have a Jandex POC but it's f

Re: [hibernate-dev] [HV] Memory footprint improvements

2017-07-24 Thread Gunnar Morling
Hi all, One general challenge for HV is that we cannot easily determine the set of validated classes upfront. Neither is there means of listing all validated types explicitly (akin to JPA's in persistence.xml), nor is it sufficient to check classes for a limited set of well-known annotations to i

Re: [hibernate-dev] [HV] Memory footprint improvements

2017-07-23 Thread Guillaume Smet
On Sat, Jul 22, 2017 at 2:44 PM, Sanne Grinovero wrote: > I'm not familiar enough with the whole picture but I strongly suspect you > should explore ways to get out of this lazy initialization strategy. > We have a Jandex POC but it's far from being ready for prime time. Not something we will b

Re: [hibernate-dev] [HV] Memory footprint improvements

2017-07-22 Thread Sanne Grinovero
On 19 Jul 2017 18:00, "Guillaume Smet" wrote: Hi, Stuart Douglas (in CC) opened an interesting issue here: https://hibernate.atlassian.net/browse/HV-1437 I already made some good progress here: https://github.com/hibernate/hibernate-validator/pull/814 but I would appreciate some feedback on a f

Re: [hibernate-dev] [HV] Memory footprint improvements

2017-07-20 Thread Guillaume Smet
On Wed, Jul 19, 2017 at 3:19 PM, Guillaume Smet wrote: > ## AnnotationMetaDataProvider#configuredBeans > > So, in AnnotationMetaDataProvider, we keep a cache of the annotation > metadata found while building the aggregated BeanMetaData. > > It might be useful if you have a class hierarchy for ins