Dirk Mahler created OLINGO-1357:
-----------------------------------
Summary: Construction of EdmTypeKind very expensive
Key: OLINGO-1357
URL: https://issues.apache.org/jira/browse/OLINGO-1357
Project: Olingo
Issue Type: Bug
Components: odata4-commons
Affects Versions: (Java) V4 4.6.0
Reporter: Dirk Mahler
Attachments: EdmTypeKind.PNG
>From the attached screenshot of the VisualVM sampler can be seen that
>construction of EdmTypeInfo instances is very expensive as
>EdmPrimitiveTypeKind.valueOf is used:
{code:java}
try {
primitiveType = EdmPrimitiveTypeKind.valueOf(typeName);
} catch (final IllegalArgumentException e) {
primitiveType = null;
}
{code}
The problem here is the exception that is thrown if the value cannot be found.
Suggesting to use a static Map to cache values, PR will be provided.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)