INRIA / INRIA/spoon

performance: all parent classes should be be cached when calling TypeFactory.get(Class)

Open
#2,097 6 comments 0 reactions 0 assignees View on GitHub
performance
Dominant language
Java
Stars
2k
Forks
392
Avg merge
11h 24m
Merged PRs (30d)
36

Description

We do not cache properly the shadowed elements.
We only cache the top level class.

For example, `TypeFactory.get(ArrayList.class)` will cache the shadow of ArrayList but the parent classes `List.class`, `Serializable.class`, `Object.class` as will as all the used types in return value and parameters will not be cached.
This can causes performance issue when the shadow is heavily used.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.