[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pdt-dev] Bootleneck in PerFileModelAccessCache.getTypes()

Hi pdt devs

I have a question for IModelAccessCache and its main implementation PerFileModelAccessCache used by DefaultBindingResolver (semantic highlights, override indicator etc..).

Line 222 is problematic for me.

If method .getTypes is called for IType which is not from SourceModule  connected to PerFileModelAccessCache, this line trying to load All ITypes from project! 

So, because often one class is using types from other files, in general  all types are loaded during each semantic highlight / override detection! 

Someone remember why this class always doing it (this code have 3 years).

Dawid PakuÅa 
+48 795 996 064