graphqlite icon indicating copy to clipboard operation
graphqlite copied to clipboard

Improve caching of GlobTypeMapper

Open moufmouf opened this issue 6 years ago • 1 comments

There must be a way to improve the performance of the GlobTypeMapper. Currently, if globTtl is out (> 2s), all the annotations are parsed again. This is lengty (because for Factories, we scan each method of each class).

We could try to have an analysis that returns absolutely every file scanned, and another process that returns the SAME cache if none of the files that have been used for the cache have been modified.

Note: this might be tricky when calls to the recursive type mapper are involved. We might need to push that cache up to the recursive type mapper (if possible).

moufmouf avatar Mar 28 '19 17:03 moufmouf

@moufmouf Is this still an issue?

oojacoboo avatar Mar 29 '21 16:03 oojacoboo