[ https://issues.apache.org/jira/browse/OLINGO-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Florent Albert updated OLINGO-1624: ----------------------------------- Description: Olingo 4.10 (via OLINGO-1167) introduced a performance regression. Commit [https://github.com/apache/olingo-odata4/commit/ce5028d24f220ad0f60b5ac023c10e7b88b7c806] now makes resolution of EdmPrimitiveTypeKind create and suppress an exception for any non primitive type. Construction in EdmTypeInfo in 4.10 and 5.0 is very expensive and causes severe performance degradation on large datasets. For the same dataset, ODataJsonSerializer.getEdmProperty() spends <200 ms in Olingo 4.9 and ~3000 ms in Olingo 5 (15x slower). This same issue was originally reported in in Olingo 4.2 and fixed in 4.7 (via OLINGO-1357 and [https://github.com/apache/olingo-odata4/pull/51/files|https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Folingo-odata4%2Fpull%2F51%2Ffiles&data=05%7C02%7Cfalbert%40ptc.com%7Cd24ae4d9097c4fcf037c08dc80c242c1%7Cb9921086ff774d0d828acb3381f678e2%7C0%7C0%7C638526819046368587%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=Y5ae4MIeiqxXLXbwJICWVMy0vQgfOohocPVmDqo1vlo%3D&reserved=0]). was: Olingo 4.10 (via OLINGO-1167) introduced a performance regression. Commit [https://github.com/apache/olingo-odata4/commit/ce5028d24f220ad0f60b5ac023c10e7b88b7c806] now makes resolution of EdmTypeInfo create and suppress an exception for any non primitive type. Construction in EdmTypeInfo in 4.10 and 5.0 is very expensive and causes severe performance degradation on large datasets. For the same dataset, ODataJsonSerializer.getEdmProperty() spends <200 ms in Olingo 4.9 and ~3000 ms in Olingo 5 (15x slower). This same issue was originally reported in in Olingo 4.2 and fixed in 4.7 (via OLINGO-1357 and [https://github.com/apache/olingo-odata4/pull/51/files|https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Folingo-odata4%2Fpull%2F51%2Ffiles&data=05%7C02%7Cfalbert%40ptc.com%7Cd24ae4d9097c4fcf037c08dc80c242c1%7Cb9921086ff774d0d828acb3381f678e2%7C0%7C0%7C638526819046368587%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=Y5ae4MIeiqxXLXbwJICWVMy0vQgfOohocPVmDqo1vlo%3D&reserved=0]). > Serialization performance regression in Olingo 5 > ------------------------------------------------ > > Key: OLINGO-1624 > URL: https://issues.apache.org/jira/browse/OLINGO-1624 > Project: Olingo > Issue Type: Bug > Components: odata4-commons > Affects Versions: (Java) V4 4.10.0, Version (Java) V4 5.0.0 > Reporter: Florent Albert > Priority: Major > > Olingo 4.10 (via OLINGO-1167) introduced a performance regression. Commit > [https://github.com/apache/olingo-odata4/commit/ce5028d24f220ad0f60b5ac023c10e7b88b7c806] > now makes resolution of EdmPrimitiveTypeKind create and suppress an > exception for any non primitive type. > Construction in EdmTypeInfo in 4.10 and 5.0 is very expensive and causes > severe performance degradation on large datasets. For the same dataset, > ODataJsonSerializer.getEdmProperty() spends <200 ms in Olingo 4.9 and ~3000 > ms in Olingo 5 (15x slower). > This same issue was originally reported in in Olingo 4.2 and fixed in 4.7 > (via OLINGO-1357 and > [https://github.com/apache/olingo-odata4/pull/51/files|https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Folingo-odata4%2Fpull%2F51%2Ffiles&data=05%7C02%7Cfalbert%40ptc.com%7Cd24ae4d9097c4fcf037c08dc80c242c1%7Cb9921086ff774d0d828acb3381f678e2%7C0%7C0%7C638526819046368587%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=Y5ae4MIeiqxXLXbwJICWVMy0vQgfOohocPVmDqo1vlo%3D&reserved=0]). -- This message was sent by Atlassian Jira (v8.20.10#820010)