chetanmeh opened a new issue #4633: Optimize WhiskEntity deserialization
URL: https://github.com/apache/openwhisk/issues/4633
 
 
   Currently the deserialization logic for `WhiskEntity` uses a trail based 
approahc where it tries multiple deserializers
   
   
https://github.com/apache/openwhisk/blob/e9dd2073cd2343545d006cd71ca01dc24114c216/common/scala/src/main/scala/org/apache/openwhisk/core/entity/WhiskEntity.scala#L134-L152
   
   This can be optimized for newer setups which started using new `entityType` 
attribute (#3164). So we can have a pre check if the object have field 
`entityType` defined then use that otherwise fallback to existing approach.
   
   It would avoid the cost of exception generated for cases where we are 
looking for entries later in the sequence

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to