Code completion: speed up by more than 2x ... at the cost of correctness, see test changes
Code completion: speed up by more than 2x
... at the cost of correctness, see test changes

This change was suggested by Argyrios.

But we still take 10 seconds to compute completion results for Cocoa.

Swift SVN r16599

slavapestov/swift,tinysun212/swift-windows,shahmishal/swift,tinysun212/swift-windows,deyton/swift,apple/swift,karwa/swift,deyton/swift,sschiau/swift,tardieu/swift,OscarSwanros/swift,frootloops/swift,OscarSwanros/swift,airspeedswift/swift,jckarter/swift,tardieu/swift,benlangmuir/swift,kusl/swift,ahoppen/swift,jmgc/swift,lorentey/swift,austinzheng/swift,rudkx/swift,russbishop/swift,kstaring/swift,karwa/swift,kentya6/swift,tinysun212/swift-windows,IngmarStein/swift,allevato/swift,benlangmuir/swift,emilstahl/swift,glessard/swift,hooman/swift,CodaFi/swift,ken0nek/swift,dreamsxin/swift,xwu/swift,parkera/swift,practicalswift/swift,MukeshKumarS/Swift,johnno1962d/swift,modocache/swift,kusl/swift,alblue/swift,slavapestov/swift,apple/swift,milseman/swift,Ivacker/swift,gribozavr/swift,SwiftAndroid/swift,roambotics/swift,shajrawi/swift,swiftix/swift,deyton/swift,codestergit/swift,dreamsxin/swift,shahmishal/swift,codestergit/swift,allevato/swift,khizkhiz/swift,KrishMunot/swift,ben-ng/swift,airspeedswift/swift,atrick/swift,gribozavr/swift,harlanhaskins/swift,IngmarStein/swift,djwbrown/swift,jopamer/swift,apple/swift,cbrentharris/swift,modocache/swift,amraboelela/swift,ken0nek/swift,lorentey/swift,milseman/swift,gmilos/swift,SwiftAndroid/swift,brentdax/swift,swiftix/swift.old,devincoughlin/swift,natecook1000/swift,MukeshKumarS/Swift,johnno1962d/swift,milseman/swift,huonw/swift,shahmishal/swift,danielmartin/swift,harlanhaskins/swift,ben-ng/swift,atrick/swift,djwbrown/swift,zisko/swift,gottesmm/swift,johnno1962d/swift,SwiftAndroid/swift,brentdax/swift,shajrawi/swift,xedin/swift,xwu/swift,Ivacker/swift,practicalswift/swift,stephentyrone/swift,uasys/swift,khizkhiz/swift,JaSpa/swift,danielmartin/swift,emilstahl/swift,Jnosh/swift,swiftix/swift,kperryua/swift,CodaFi/swift,allevato/swift,johnno1962d/swift,swiftix/swift.old,austinzheng/swift,parkera/swift,austinzheng/swift,lorentey/swift,glessard/swift,sdulal/swift,gmilos/swift,natecook1000/swift,kentya6/swift,CodaFi/swift,hughbe/swift,xedin/swift,dduan/swift,sdulal/swift,mightydeveloper/swift,codestergit/swift,xwu/swift,benlangmuir/swift,roambotics/swift,bitjammer/swift,brentdax/swift,hughbe/swift,glessard/swift,shahmishal/swift,ben-ng/swift,stephentyrone/swift,JaSpa/swift,huonw/swift,gmilos/swift,therealbnut/swift,adrfer/swift,atrick/swift,parkera/swift,LeoShimonaka/swift,adrfer/swift,JGiola/swift,tardieu/swift,arvedviehweger/swift,djwbrown/swift,ben-ng/swift,MukeshKumarS/Swift,djwbrown/swift,jopamer/swift,russbishop/swift,kusl/swift,jckarter/swift,karwa/swift,swiftix/swift.old,Jnosh/swift,jtbandes/swift,aschwaighofer/swift,zisko/swift,amraboelela/swift,aschwaighofer/swift,IngmarStein/swift,swiftix/swift,hooman/swift,Jnosh/swift,ahoppen/swift,deyton/swift,codestergit/swift,gribozavr/swift,atrick/swift,harlanhaskins/swift,aschwaighofer/swift,gottesmm/swift,mightydeveloper/swift,LeoShimonaka/swift,brentdax/swift,Ivacker/swift,MukeshKumarS/Swift,karwa/swift,djwbrown/swift,frootloops/swift,atrick/swift,ken0nek/swift,devincoughlin/swift,hughbe/swift,huonw/swift,return/swift,shajrawi/swift,SwiftAndroid/swift,uasys/swift,glessard/swift,bitjammer/swift,kstaring/swift,aschwaighofer/swift,stephentyrone/swift,Ivacker/swift,uasys/swift,xedin/swift,hughbe/swift,apple/swift,devincoughlin/swift,Ivacker/swift,arvedviehweger/swift,amraboelela/swift,gottesmm/swift,allevato/swift,Ivacker/swift,cbrentharris/swift,tkremenek/swift,mightydeveloper/swift,kperryua/swift,aschwaighofer/swift,CodaFi/swift,shajrawi/swift,nathawes/swift,xedin/swift,tkremenek/swift,hooman/swift,KrishMunot/swift,tjw/swift,sschiau/swift,MukeshKumarS/Swift,lorentey/swift,tkremenek/swift,CodaFi/swift,JGiola/swift,tardieu/swift,hooman/swift,ken0nek/swift,huonw/swift,djwbrown/swift,rudkx/swift,practicalswift/swift,sschiau/swift,SwiftAndroid/swift,codestergit/swift,harlanhaskins/swift,alblue/swift,lorentey/swift,bitjammer/swift,kstaring/swift,Jnosh/swift,gribozavr/swift,gottesmm/swift,russbishop/swift,gregomni/swift,stephentyrone/swift,tinysun212/swift-windows,airspeedswift/swift,KrishMunot/swift,jtbandes/swift,kentya6/swift,JGiola/swift,gottesmm/swift,felix91gr/swift,russbishop/swift,rudkx/swift,huonw/swift,tkremenek/swift,jtbandes/swift,hooman/swift,nathawes/swift,uasys/swift,cbrentharris/swift,jmgc/swift,danielmartin/swift,JaSpa/swift,natecook1000/swift,nathawes/swift,tjw/swift,kperryua/swift,alblue/swift,hughbe/swift,shahmishal/swift,khizkhiz/swift,milseman/swift,khizkhiz/swift,sschiau/swift,johnno1962d/swift,jckarter/swift,shahmishal/swift,arvedviehweger/swift,airspeedswift/swift,slavapestov/swift,arvedviehweger/swift,airspeedswift/swift,nathawes/swift,hooman/swift,devincoughlin/swift,stephentyrone/swift,uasys/swift,kentya6/swift,therealbnut/swift,jmgc/swift,felix91gr/swift,kusl/swift,nathawes/swift,jtbandes/swift,gribozavr/swift,frootloops/swift,hooman/swift,jtbandes/swift,gottesmm/swift,hughbe/swift,ahoppen/swift,ken0nek/swift,nathawes/swift,JGiola/swift,mightydeveloper/swift,roambotics/swift,roambotics/swift,cbrentharris/swift,xedin/swift,zisko/swift,zisko/swift,tkremenek/swift,Jnosh/swift,emilstahl/swift,arvedviehweger/swift,swiftix/swift,emilstahl/swift,modocache/swift,OscarSwanros/swift,dduan/swift,modocache/swift,russbishop/swift,xedin/swift,sdulal/swift,adrfer/swift,jmgc/swift,emilstahl/swift,tardieu/swift,practicalswift/swift,sschiau/swift,JaSpa/swift,jopamer/swift,sdulal/swift,xwu/swift,russbishop/swift,SwiftAndroid/swift,airspeedswift/swift,tardieu/swift,allevato/swift,kperryua/swift,xwu/swift,felix91gr/swift,sdulal/swift,KrishMunot/swift,tjw/swift,practicalswift/swift,benlangmuir/swift,swiftix/swift,jopamer/swift,dduan/swift,OscarSwanros/swift,calebd/swift,kstaring/swift,practicalswift/swift,gregomni/swift,cbrentharris/swift,gottesmm/swift,xedin/swift,cbrentharris/swift,tinysun212/swift-windows,swiftix/swift.old,KrishMunot/swift,kusl/swift,therealbnut/swift,deyton/swift,OscarSwanros/swift,milseman/swift,zisko/swift,stephentyrone/swift,natecook1000/swift,gmilos/swift,kusl/swift,gmilos/swift,kentya6/swift,emilstahl/swift,tardieu/swift,LeoShimonaka/swift,zisko/swift,danielmartin/swift,ben-ng/swift,huonw/swift,airspeedswift/swift,zisko/swift,tinysun212/swift-windows,xwu/swift,manavgabhawala/swift,deyton/swift,cbrentharris/swift,calebd/swift,calebd/swift,arvedviehweger/swift,gribozavr/swift,xwu/swift,modocache/swift,danielmartin/swift,allevato/swift,jmgc/swift,LeoShimonaka/swift,ken0nek/swift,apple/swift,adrfer/swift,KrishMunot/swift,ken0nek/swift,tkremenek/swift,emilstahl/swift,rudkx/swift,slavapestov/swift,natecook1000/swift,parkera/swift,ben-ng/swift,frootloops/swift,jtbandes/swift,harlanhaskins/swift,dduan/swift,Ivacker/swift,swiftix/swift.old,natecook1000/swift,aschwaighofer/swift,lorentey/swift,manavgabhawala/swift,practicalswift/swift,johnno1962d/swift,manavgabhawala/swift,shajrawi/swift,sdulal/swift,practicalswift/swift,dduan/swift,return/swift,khizkhiz/swift,swiftix/swift.old,jopamer/swift,return/swift,xedin/swift,tjw/swift,apple/swift,sdulal/swift,gregomni/swift,JGiola/swift,karwa/swift,amraboelela/swift,kusl/swift,gribozavr/swift,ahoppen/swift,IngmarStein/swift,khizkhiz/swift,sschiau/swift,bitjammer/swift,felix91gr/swift,amraboelela/swift,OscarSwanros/swift,tjw/swift,slavapestov/swift,return/swift,adrfer/swift,LeoShimonaka/swift,deyton/swift,karwa/swift,Jnosh/swift,dduan/swift,frootloops/swift,uasys/swift,jckarter/swift,allevato/swift,jopamer/swift,bitjammer/swift,parkera/swift,devincoughlin/swift,brentdax/swift,return/swift,KrishMunot/swift,LeoShimonaka/swift,swiftix/swift.old,shajrawi/swift,SwiftAndroid/swift,kstaring/swift,emilstahl/swift,swiftix/swift.old,JaSpa/swift,shahmishal/swift,OscarSwanros/swift,kentya6/swift,mightydeveloper/swift,IngmarStein/swift,rudkx/swift,mightydeveloper/swift,khizkhiz/swift,sschiau/swift,therealbnut/swift,sdulal/swift,jckarter/swift,jmgc/swift,codestergit/swift,IngmarStein/swift,aschwaighofer/swift,bitjammer/swift,jckarter/swift,therealbnut/swift,return/swift,MukeshKumarS/Swift,parkera/swift,russbishop/swift,glessard/swift,CodaFi/swift,milseman/swift,swiftix/swift,shajrawi/swift,nathawes/swift,manavgabhawala/swift,brentdax/swift,alblue/swift,calebd/swift,slavapestov/swift,johnno1962d/swift,tjw/swift,austinzheng/swift,stephentyrone/swift,adrfer/swift,kstaring/swift,parkera/swift,ahoppen/swift,cbrentharris/swift,shajrawi/swift,harlanhaskins/swift,frootloops/swift,devincoughlin/swift,lorentey/swift,ben-ng/swift,JaSpa/swift,gmilos/swift,codestergit/swift,austinzheng/swift,shahmishal/swift,uasys/swift,danielmartin/swift,swiftix/swift,LeoShimonaka/swift,jopamer/swift,alblue/swift,manavgabhawala/swift,danielmartin/swift,kusl/swift,milseman/swift,parkera/swift,IngmarStein/swift,gmilos/swift,alblue/swift,felix91gr/swift,harlanhaskins/swift,gregomni/swift,rudkx/swift,brentdax/swift,karwa/swift,JGiola/swift,amraboelela/swift,calebd/swift,felix91gr/swift,MukeshKumarS/Swift,amraboelela/swift,devincoughlin/swift,adrfer/swift,huonw/swift,manavgabhawala/swift,gribozavr/swift,roambotics/swift,therealbnut/swift,benlangmuir/swift,jmgc/swift,modocache/swift,jckarter/swift,sschiau/swift,bitjammer/swift,felix91gr/swift,mightydeveloper/swift,manavgabhawala/swift,natecook1000/swift,mightydeveloper/swift,Ivacker/swift,djwbrown/swift,benlangmuir/swift,devincoughlin/swift,calebd/swift,therealbnut/swift,calebd/swift,austinzheng/swift,gregomni/swift,austinzheng/swift,CodaFi/swift,karwa/swift,tkremenek/swift,Jnosh/swift,modocache/swift,dduan/swift,roambotics/swift,kentya6/swift,glessard/swift,JaSpa/swift,tinysun212/swift-windows,atrick/swift,hughbe/swift,lorentey/swift,frootloops/swift,kperryua/swift,arvedviehweger/swift,LeoShimonaka/swift,kentya6/swift,kstaring/swift,tjw/swift,gregomni/swift,kperryua/swift,ahoppen/swift,alblue/swift,return/swift,kperryua/swift,jtbandes/swift,slavapestov/swift