[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-dev] Reason behind ClassConstants (org.eclipse.persistence.internal.helper)?
|
This was added as a performance improvement. ArrayList.class was
translated to Class.forName("ArrayList") by the compiler. We could add
static attributes to the EclipseLink types but there are quite a few
references to non-EclipseLink types.
What if we created multiple class constants files?
--Gordon
Blaise Doughan wrote:
Hello All,
I am currently investigating the possibility of moving the OXM classes
into there own bundle separate from core. Before this can happen
there are some class dependencies that need to be reworked.
The first problem area discovered is
org.eclipse.persistence.internal.helper.ClassConstants which has a
transitive dependency on 797 classes
Presumably ClassConstants was introduced as a performance improvement,
is ClassConstants.IndirectMap_Class faster than IndirectMap.class?
If so how about changing:
From: ClassConstants.IndirectMap_Class
To: IndirectMap.CLASS (assuming this is faster than IndirectMap.class)
-Blaise
_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-dev