misc optimizations for showing lookup with many elements:
authorMaxim.Mossienko <Maxim.Mossienko@jetbrains.com>
Thu, 22 Apr 2010 14:30:43 +0000 (18:30 +0400)
committerMaxim.Mossienko <Maxim.Mossienko@jetbrains.com>
Thu, 22 Apr 2010 14:30:43 +0000 (18:30 +0400)
commit6a80949468150b97bdd88dd3327b635733614d85
tree5087a832c449d5497e863e01f996885ca398c2ab
parent3373672fed9b215ff47a6d011bf94ecd7068d08b
misc optimizations for showing lookup with many elements:
- using ContainerUtil.toArray
- cheaper checks of relevance to Java-specific weighers
- avoid expensive Class#isInstanceOf of LookupElement#as using:
     * LookupItem#from with explicit instanceof LookupItem (caring of LookupElementDecorator)
     * isCaseSensitive introduced to LookupElement
java/java-impl/src/com/intellij/codeInsight/completion/JavaCompletionStatistician.java
java/java-impl/src/com/intellij/codeInsight/completion/JavaCompletionUtil.java
java/java-impl/src/com/intellij/codeInsight/completion/StaticMembersWeigher.java
java/java-impl/src/com/intellij/psi/util/proximity/JavaInheritanceWeigher.java
platform/lang-api/src/com/intellij/codeInsight/lookup/LookupElement.java
platform/lang-api/src/com/intellij/codeInsight/lookup/LookupElementDecorator.java
platform/lang-api/src/com/intellij/psi/WeighingService.java
platform/lang-impl/src/com/intellij/codeInsight/completion/impl/CamelHumpMatcher.java
platform/lang-impl/src/com/intellij/codeInsight/lookup/LookupItem.java