fix quadratic performance issue with long module names (#5981)
fix quadratic performance issue with long module names (#5981)

elieux/ghc,fmthoma/ghc,ekmett/ghc,bitemyapp/ghc,siddhanathan/ghc,nathyong/microghc-ghc,fmthoma/ghc,bitemyapp/ghc,siddhanathan/ghc,GaloisInc/halvm-ghc,da-x/ghc,snoyberg/ghc,mettekou/ghc,vTurbine/ghc,lukexi/ghc-7.8-arm64,gcampax/ghc,fmthoma/ghc,mcschroeder/ghc,da-x/ghc,wxwxwwxxx/ghc,mfine/ghc,vTurbine/ghc,hferreiro/replay,lukexi/ghc,TomMD/ghc,mettekou/ghc,AlexanderPankiv/ghc,ml9951/ghc,frantisekfarka/ghc-dsi,urbanslug/ghc,ryantm/ghc,sdiehl/ghc,jstolarek/ghc,mcschroeder/ghc,ezyang/ghc,nkaretnikov/ghc,green-haskell/ghc,forked-upstream-packages-for-ghcjs/ghc,frantisekfarka/ghc-dsi,olsner/ghc,green-haskell/ghc,spacekitteh/smcghc,tibbe/ghc,nushio3/ghc,siddhanathan/ghc,acowley/ghc,vTurbine/ghc,ghc-android/ghc,acowley/ghc,lukexi/ghc-7.8-arm64,nushio3/ghc,nathyong/microghc-ghc,vTurbine/ghc,green-haskell/ghc,ryantm/ghc,olsner/ghc,ghc-android/ghc,da-x/ghc,forked-upstream-packages-for-ghcjs/ghc,christiaanb/ghc,GaloisInc/halvm-ghc,ezyang/ghc,lukexi/ghc-7.8-arm64,nathyong/microghc-ghc,spacekitteh/smcghc,holzensp/ghc,vTurbine/ghc,mcschroeder/ghc,mfine/ghc,nkaretnikov/ghc,mcschroeder/ghc,vikraman/ghc,gcampax/ghc,ghc-android/ghc,hferreiro/replay,nushio3/ghc,hferreiro/replay,lukexi/ghc,ml9951/ghc,nomeata/ghc,ml9951/ghc,elieux/ghc,ml9951/ghc,snoyberg/ghc,oldmanmike/ghc,nathyong/microghc-ghc,sdiehl/ghc,ghc-android/ghc,olsner/ghc,acowley/ghc,gridaphobe/ghc,TomMD/ghc,ezyang/ghc,christiaanb/ghc,snoyberg/ghc,nushio3/ghc,sgillespie/ghc,spacekitteh/smcghc,christiaanb/ghc,nkaretnikov/ghc,hferreiro/replay,tjakway/ghcjvm,oldmanmike/ghc,snoyberg/ghc,shlevy/ghc,shlevy/ghc,ghc-android/ghc,tjakway/ghcjvm,christiaanb/ghc,hferreiro/replay,tibbe/ghc,vikraman/ghc,ezyang/ghc,sgillespie/ghc,mettekou/ghc,TomMD/ghc,mfine/ghc,ml9951/ghc,da-x/ghc,acowley/ghc,wxwxwwxxx/ghc,oldmanmike/ghc,sgillespie/ghc,tjakway/ghcjvm,shlevy/ghc,tibbe/ghc,nushio3/ghc,gridaphobe/ghc,sgillespie/ghc,nkaretnikov/ghc,GaloisInc/halvm-ghc,green-haskell/ghc,bitemyapp/ghc,sgillespie/ghc,oldmanmike/ghc,vTurbine/ghc,ekmett/ghc,da-x/ghc,wxwxwwxxx/ghc,hferreiro/replay,nomeata/ghc,olsner/ghc,mcschroeder/ghc,shlevy/ghc,ezyang/ghc,spacekitteh/smcghc,elieux/ghc,holzensp/ghc,bitemyapp/ghc,wxwxwwxxx/ghc,olsner/ghc,AlexanderPankiv/ghc,urbanslug/ghc,anton-dessiatov/ghc,mettekou/ghc,lukexi/ghc,gridaphobe/ghc,fmthoma/ghc,vikraman/ghc,mfine/ghc,ezyang/ghc,urbanslug/ghc,bitemyapp/ghc,da-x/ghc,olsner/ghc,ryantm/ghc,ekmett/ghc,oldmanmike/ghc,oldmanmike/ghc,jstolarek/ghc,tibbe/ghc,olsner/ghc,nushio3/ghc,da-x/ghc,urbanslug/ghc,GaloisInc/halvm-ghc,urbanslug/ghc,forked-upstream-packages-for-ghcjs/ghc,vikraman/ghc,frantisekfarka/ghc-dsi,nathyong/microghc-ghc,holzensp/ghc,mfine/ghc,christiaanb/ghc,mfine/ghc,nkaretnikov/ghc,lukexi/ghc-7.8-arm64,snoyberg/ghc,mettekou/ghc,mfine/ghc,tibbe/ghc,fmthoma/ghc,christiaanb/ghc,elieux/ghc,hferreiro/replay,GaloisInc/halvm-ghc,AlexanderPankiv/ghc,anton-dessiatov/ghc,nathyong/microghc-ghc,holzensp/ghc,elieux/ghc,ml9951/ghc,sdiehl/ghc,ekmett/ghc,mettekou/ghc,mcschroeder/ghc,gridaphobe/ghc,jstolarek/ghc,TomMD/ghc,christiaanb/ghc,AlexanderPankiv/ghc,lukexi/ghc-7.8-arm64,vikraman/ghc,TomMD/ghc,elieux/ghc,spacekitteh/smcghc,frantisekfarka/ghc-dsi,sdiehl/ghc,siddhanathan/ghc,gcampax/ghc,sdiehl/ghc,anton-dessiatov/ghc,ghc-android/ghc,ghc-android/ghc,TomMD/ghc,shlevy/ghc,snoyberg/ghc,lukexi/ghc,GaloisInc/halvm-ghc,mettekou/ghc,forked-upstream-packages-for-ghcjs/ghc,tjakway/ghcjvm,gridaphobe/ghc,green-haskell/ghc,sgillespie/ghc,acowley/ghc,tjakway/ghcjvm,gridaphobe/ghc,gcampax/ghc,forked-upstream-packages-for-ghcjs/ghc,jstolarek/ghc,TomMD/ghc,forked-upstream-packages-for-ghcjs/ghc,nomeata/ghc,AlexanderPankiv/ghc,AlexanderPankiv/ghc,shlevy/ghc,frantisekfarka/ghc-dsi,nkaretnikov/ghc,wxwxwwxxx/ghc,holzensp/ghc,AlexanderPankiv/ghc,vikraman/ghc,snoyberg/ghc,sdiehl/ghc,sdiehl/ghc,ryantm/ghc,urbanslug/ghc,ml9951/ghc,anton-dessiatov/ghc,lukexi/ghc,nomeata/ghc,ekmett/ghc,fmthoma/ghc,oldmanmike/ghc,vikraman/ghc,gcampax/ghc,siddhanathan/ghc,ryantm/ghc,ml9951/ghc,gcampax/ghc,nathyong/microghc-ghc,gridaphobe/ghc,wxwxwwxxx/ghc,nkaretnikov/ghc,gcampax/ghc,forked-upstream-packages-for-ghcjs/ghc,anton-dessiatov/ghc,siddhanathan/ghc,acowley/ghc,anton-dessiatov/ghc,tjakway/ghcjvm,nushio3/ghc,nomeata/ghc,tjakway/ghcjvm,mcschroeder/ghc,acowley/ghc,elieux/ghc,siddhanathan/ghc,ezyang/ghc,anton-dessiatov/ghc,fmthoma/ghc,sgillespie/ghc,shlevy/ghc,wxwxwwxxx/ghc,GaloisInc/halvm-ghc,jstolarek/ghc,vTurbine/ghc,urbanslug/ghc