Use ConsistentHash's mass-add method.
Use ConsistentHash's mass-add method.

Calling hash.add() in a tight loop gets very expensive. With a
good-sized queue & slave pool, this cost tens of seconds, but now it
costs tens of milliseconds.

bkmeneguello/jenkins,jenkinsci/jenkins,MichaelPranovich/jenkins_sc,1and1/jenkins,sathiya-mit/jenkins,amuniz/jenkins,arcivanov/jenkins,ErikVerheul/jenkins,andresrc/jenkins,verbitan/jenkins,azweb76/jenkins,ErikVerheul/jenkins,mcanthony/jenkins,godfath3r/jenkins,pselle/jenkins,stephenc/jenkins,iqstack/jenkins,Jochen-A-Fuerbacher/jenkins,hashar/jenkins,ydubreuil/jenkins,lindzh/jenkins,soenter/jenkins,hemantojhaa/jenkins,liorhson/jenkins,NehemiahMi/jenkins,evernat/jenkins,ikedam/jenkins,lilyJi/jenkins,aquarellian/jenkins,svanoort/jenkins,scoheb/jenkins,lindzh/jenkins,NehemiahMi/jenkins,viqueen/jenkins,godfath3r/jenkins,MarkEWaite/jenkins,ndeloof/jenkins,vlajos/jenkins,ndeloof/jenkins,aduprat/jenkins,Krasnyanskiy/jenkins,hashar/jenkins,ns163/jenkins,dbroady1/jenkins,wuwen5/jenkins,vijayto/jenkins,daniel-beck/jenkins,vlajos/jenkins,aquarellian/jenkins,paulmillar/jenkins,csimons/jenkins,jglick/jenkins,khmarbaise/jenkins,guoxu0514/jenkins,ErikVerheul/jenkins,duzifang/my-jenkins,patbos/jenkins,msrb/jenkins,stephenc/jenkins,svanoort/jenkins,CodeShane/jenkins,bpzhang/jenkins,escoem/jenkins,ns163/jenkins,pjanouse/jenkins,AustinKwang/jenkins,hplatou/jenkins,alvarolobato/jenkins,Vlatombe/jenkins,morficus/jenkins,ns163/jenkins,wuwen5/jenkins,dennisjlee/jenkins,hemantojhaa/jenkins,stephenc/jenkins,ajshastri/jenkins,andresrc/jenkins,recena/jenkins,SenolOzer/jenkins,Vlatombe/jenkins,aduprat/jenkins,jcsirot/jenkins,viqueen/jenkins,rlugojr/jenkins,wuwen5/jenkins,ndeloof/jenkins,vjuranek/jenkins,khmarbaise/jenkins,kzantow/jenkins,AustinKwang/jenkins,rashmikanta-1984/jenkins,chbiel/jenkins,ajshastri/jenkins,292388900/jenkins,mdonohue/jenkins,batmat/jenkins,ydubreuil/jenkins,soenter/jenkins,batmat/jenkins,vlajos/jenkins,jk47/jenkins,Krasnyanskiy/jenkins,jpederzolli/jenkins-1,brunocvcunha/jenkins,mattclark/jenkins,Jochen-A-Fuerbacher/jenkins,gusreiber/jenkins,jpbriend/jenkins,AustinKwang/jenkins,christ66/jenkins,azweb76/jenkins,kzantow/jenkins,akshayabd/jenkins,Jimilian/jenkins,intelchen/jenkins,DanielWeber/jenkins,huybrechts/hudson,ydubreuil/jenkins,jenkinsci/jenkins,NehemiahMi/jenkins,Ykus/jenkins,duzifang/my-jenkins,tangkun75/jenkins,chbiel/jenkins,Ykus/jenkins,bkmeneguello/jenkins,rashmikanta-1984/jenkins,lilyJi/jenkins,Vlatombe/jenkins,jpederzolli/jenkins-1,MarkEWaite/jenkins,noikiy/jenkins,fbelzunc/jenkins,tfennelly/jenkins,petermarcoen/jenkins,guoxu0514/jenkins,my7seven/jenkins,pselle/jenkins,Jochen-A-Fuerbacher/jenkins,brunocvcunha/jenkins,petermarcoen/jenkins,SebastienGllmt/jenkins,jpbriend/jenkins,christ66/jenkins,arcivanov/jenkins,alvarolobato/jenkins,samatdav/jenkins,lindzh/jenkins,samatdav/jenkins,FTG-003/jenkins,scoheb/jenkins,amruthsoft9/Jenkis,aduprat/jenkins,ydubreuil/jenkins,oleg-nenashev/jenkins,verbitan/jenkins,arcivanov/jenkins,bkmeneguello/jenkins,FarmGeek4Life/jenkins,albers/jenkins,vvv444/jenkins,SebastienGllmt/jenkins,ns163/jenkins,lindzh/jenkins,my7seven/jenkins,dbroady1/jenkins,huybrechts/hudson,aldaris/jenkins,CodeShane/jenkins,amuniz/jenkins,lindzh/jenkins,msrb/jenkins,tfennelly/jenkins,aldaris/jenkins,jhoblitt/jenkins,292388900/jenkins,tangkun75/jenkins,protazy/jenkins,protazy/jenkins,wangyikai/jenkins,bpzhang/jenkins,FarmGeek4Life/jenkins,varmenise/jenkins,vjuranek/jenkins,guoxu0514/jenkins,aquarellian/jenkins,petermarcoen/jenkins,soenter/jenkins,gusreiber/jenkins,christ66/jenkins,chbiel/jenkins,arunsingh/jenkins,tangkun75/jenkins,rsandell/jenkins,jcsirot/jenkins,soenter/jenkins,dariver/jenkins,intelchen/jenkins,vlajos/jenkins,recena/jenkins,recena/jenkins,SenolOzer/jenkins,Jimilian/jenkins,mrooney/jenkins,liupugong/jenkins,hashar/jenkins,vvv444/jenkins,MichaelPranovich/jenkins_sc,arcivanov/jenkins,hemantojhaa/jenkins,luoqii/jenkins,intelchen/jenkins,azweb76/jenkins,my7seven/jenkins,paulmillar/jenkins,christ66/jenkins,jpbriend/jenkins,v1v/jenkins,varmenise/jenkins,jglick/jenkins,sathiya-mit/jenkins,hashar/jenkins,MichaelPranovich/jenkins_sc,singh88/jenkins,vvv444/jenkins,liupugong/jenkins,morficus/jenkins,oleg-nenashev/jenkins,varmenise/jenkins,rsandell/jenkins,mdonohue/jenkins,yonglehou/jenkins,bkmeneguello/jenkins,seanlin816/jenkins,gitaccountforprashant/gittest,olivergondza/jenkins,SenolOzer/jenkins,seanlin816/jenkins,mrooney/jenkins,vvv444/jenkins,elkingtonmcb/jenkins,olivergondza/jenkins,brunocvcunha/jenkins,MichaelPranovich/jenkins_sc,elkingtonmcb/jenkins,mcanthony/jenkins,jpbriend/jenkins,FarmGeek4Life/jenkins,daniel-beck/jenkins,vlajos/jenkins,jhoblitt/jenkins,6WIND/jenkins,batmat/jenkins,rashmikanta-1984/jenkins,FTG-003/jenkins,soenter/jenkins,pselle/jenkins,wangyikai/jenkins,jpederzolli/jenkins-1,akshayabd/jenkins,292388900/jenkins,viqueen/jenkins,paulwellnerbou/jenkins,damianszczepanik/jenkins,gusreiber/jenkins,FTG-003/jenkins,DanielWeber/jenkins,recena/jenkins,singh88/jenkins,ydubreuil/jenkins,batmat/jenkins,rsandell/jenkins,csimons/jenkins,mdonohue/jenkins,batmat/jenkins,jcsirot/jenkins,bkmeneguello/jenkins,gitaccountforprashant/gittest,everyonce/jenkins,6WIND/jenkins,jpbriend/jenkins,yonglehou/jenkins,verbitan/jenkins,evernat/jenkins,ChrisA89/jenkins,hashar/jenkins,liorhson/jenkins,Jimilian/jenkins,ikedam/jenkins,everyonce/jenkins,amruthsoft9/Jenkis,andresrc/jenkins,kohsuke/hudson,msrb/jenkins,lilyJi/jenkins,dbroady1/jenkins,Jimilian/jenkins,vijayto/jenkins,tastatur/jenkins,varmenise/jenkins,ikedam/jenkins,Jimilian/jenkins,vlajos/jenkins,jglick/jenkins,DanielWeber/jenkins,ChrisA89/jenkins,paulmillar/jenkins,akshayabd/jenkins,1and1/jenkins,dariver/jenkins,azweb76/jenkins,lilyJi/jenkins,batmat/jenkins,fbelzunc/jenkins,singh88/jenkins,oleg-nenashev/jenkins,verbitan/jenkins,my7seven/jenkins,christ66/jenkins,singh88/jenkins,intelchen/jenkins,292388900/jenkins,kohsuke/hudson,iqstack/jenkins,Jochen-A-Fuerbacher/jenkins,pjanouse/jenkins,vijayto/jenkins,Vlatombe/jenkins,dennisjlee/jenkins,everyonce/jenkins,6WIND/jenkins,Jochen-A-Fuerbacher/jenkins,verbitan/jenkins,azweb76/jenkins,dariver/jenkins,mrooney/jenkins,huybrechts/hudson,yonglehou/jenkins,petermarcoen/jenkins,ikedam/jenkins,bpzhang/jenkins,jenkinsci/jenkins,evernat/jenkins,amruthsoft9/Jenkis,liupugong/jenkins,gusreiber/jenkins,v1v/jenkins,protazy/jenkins,bpzhang/jenkins,everyonce/jenkins,intelchen/jenkins,ns163/jenkins,mrooney/jenkins,AustinKwang/jenkins,yonglehou/jenkins,amuniz/jenkins,FTG-003/jenkins,wuwen5/jenkins,CodeShane/jenkins,guoxu0514/jenkins,guoxu0514/jenkins,1and1/jenkins,chbiel/jenkins,mattclark/jenkins,soenter/jenkins,rlugojr/jenkins,aldaris/jenkins,escoem/jenkins,kohsuke/hudson,mcanthony/jenkins,jk47/jenkins,jk47/jenkins,Ykus/jenkins,tastatur/jenkins,aldaris/jenkins,msrb/jenkins,jhoblitt/jenkins,aquarellian/jenkins,SenolOzer/jenkins,dbroady1/jenkins,gusreiber/jenkins,dbroady1/jenkins,ikedam/jenkins,mdonohue/jenkins,seanlin816/jenkins,dennisjlee/jenkins,dennisjlee/jenkins,pjanouse/jenkins,stephenc/jenkins,patbos/jenkins,kzantow/jenkins,liorhson/jenkins,vvv444/jenkins,wangyikai/jenkins,ChrisA89/jenkins,amuniz/jenkins,DanielWeber/jenkins,pselle/jenkins,stephenc/jenkins,iqstack/jenkins,olivergondza/jenkins,bpzhang/jenkins,samatdav/jenkins,jpbriend/jenkins,jpederzolli/jenkins-1,dariver/jenkins,csimons/jenkins,amruthsoft9/Jenkis,liorhson/jenkins,paulmillar/jenkins,arunsingh/jenkins,damianszczepanik/jenkins,aduprat/jenkins,wangyikai/jenkins,damianszczepanik/jenkins,mattclark/jenkins,christ66/jenkins,viqueen/jenkins,iqstack/jenkins,jhoblitt/jenkins,Ykus/jenkins,iqstack/jenkins,rsandell/jenkins,scoheb/jenkins,luoqii/jenkins,noikiy/jenkins,mrooney/jenkins,godfath3r/jenkins,patbos/jenkins,tangkun75/jenkins,SenolOzer/jenkins,hemantojhaa/jenkins,jhoblitt/jenkins,arunsingh/jenkins,bkmeneguello/jenkins,petermarcoen/jenkins,iqstack/jenkins,sathiya-mit/jenkins,paulwellnerbou/jenkins,noikiy/jenkins,aquarellian/jenkins,fbelzunc/jenkins,daniel-beck/jenkins,albers/jenkins,noikiy/jenkins,scoheb/jenkins,recena/jenkins,protazy/jenkins,petermarcoen/jenkins,patbos/jenkins,paulwellnerbou/jenkins,akshayabd/jenkins,duzifang/my-jenkins,godfath3r/jenkins,tfennelly/jenkins,pjanouse/jenkins,alvarolobato/jenkins,FarmGeek4Life/jenkins,msrb/jenkins,liorhson/jenkins,brunocvcunha/jenkins,vvv444/jenkins,aquarellian/jenkins,samatdav/jenkins,andresrc/jenkins,varmenise/jenkins,alvarolobato/jenkins,hashar/jenkins,kzantow/jenkins,fbelzunc/jenkins,jglick/jenkins,stephenc/jenkins,arunsingh/jenkins,mcanthony/jenkins,arcivanov/jenkins,elkingtonmcb/jenkins,aduprat/jenkins,seanlin816/jenkins,olivergondza/jenkins,mattclark/jenkins,rsandell/jenkins,dariver/jenkins,andresrc/jenkins,bkmeneguello/jenkins,patbos/jenkins,hemantojhaa/jenkins,v1v/jenkins,noikiy/jenkins,lordofthejars/jenkins,yonglehou/jenkins,lordofthejars/jenkins,vjuranek/jenkins,aquarellian/jenkins,jenkinsci/jenkins,jcsirot/jenkins,alvarolobato/jenkins,brunocvcunha/jenkins,vijayto/jenkins,luoqii/jenkins,lordofthejars/jenkins,lindzh/jenkins,svanoort/jenkins,jpederzolli/jenkins-1,tfennelly/jenkins,pjanouse/jenkins,jenkinsci/jenkins,liorhson/jenkins,akshayabd/jenkins,vijayto/jenkins,lilyJi/jenkins,Jimilian/jenkins,patbos/jenkins,pselle/jenkins,ns163/jenkins,luoqii/jenkins,SebastienGllmt/jenkins,1and1/jenkins,jglick/jenkins,samatdav/jenkins,SebastienGllmt/jenkins,godfath3r/jenkins,mattclark/jenkins,albers/jenkins,FTG-003/jenkins,rsandell/jenkins,ChrisA89/jenkins,liupugong/jenkins,rlugojr/jenkins,csimons/jenkins,Ykus/jenkins,lordofthejars/jenkins,ErikVerheul/jenkins,albers/jenkins,khmarbaise/jenkins,damianszczepanik/jenkins,seanlin816/jenkins,luoqii/jenkins,amuniz/jenkins,jpederzolli/jenkins-1,kohsuke/hudson,escoem/jenkins,ndeloof/jenkins,recena/jenkins,SebastienGllmt/jenkins,vijayto/jenkins,kzantow/jenkins,MarkEWaite/jenkins,lilyJi/jenkins,Vlatombe/jenkins,huybrechts/hudson,v1v/jenkins,khmarbaise/jenkins,tastatur/jenkins,evernat/jenkins,jglick/jenkins,liorhson/jenkins,jhoblitt/jenkins,escoem/jenkins,batmat/jenkins,varmenise/jenkins,morficus/jenkins,Vlatombe/jenkins,tastatur/jenkins,SenolOzer/jenkins,jcsirot/jenkins,pjanouse/jenkins,damianszczepanik/jenkins,arcivanov/jenkins,paulwellnerbou/jenkins,aldaris/jenkins,evernat/jenkins,sathiya-mit/jenkins,amuniz/jenkins,jcsirot/jenkins,khmarbaise/jenkins,mcanthony/jenkins,ikedam/jenkins,hplatou/jenkins,my7seven/jenkins,kohsuke/hudson,ChrisA89/jenkins,brunocvcunha/jenkins,elkingtonmcb/jenkins,hplatou/jenkins,AustinKwang/jenkins,oleg-nenashev/jenkins,jhoblitt/jenkins,MarkEWaite/jenkins,hplatou/jenkins,MarkEWaite/jenkins,fbelzunc/jenkins,kzantow/jenkins,jpbriend/jenkins,wuwen5/jenkins,ErikVerheul/jenkins,MichaelPranovich/jenkins_sc,rashmikanta-1984/jenkins,jenkinsci/jenkins,jcsirot/jenkins,mattclark/jenkins,daniel-beck/jenkins,samatdav/jenkins,AustinKwang/jenkins,singh88/jenkins,kohsuke/hudson,FarmGeek4Life/jenkins,v1v/jenkins,ErikVerheul/jenkins,morficus/jenkins,sathiya-mit/jenkins,paulwellnerbou/jenkins,amruthsoft9/Jenkis,MarkEWaite/jenkins,tangkun75/jenkins,arcivanov/jenkins,MarkEWaite/jenkins,morficus/jenkins,CodeShane/jenkins,rashmikanta-1984/jenkins,vlajos/jenkins,aldaris/jenkins,morficus/jenkins,daniel-beck/jenkins,luoqii/jenkins,kohsuke/hudson,amruthsoft9/Jenkis,scoheb/jenkins,huybrechts/hudson,noikiy/jenkins,bpzhang/jenkins,mattclark/jenkins,huybrechts/hudson,ydubreuil/jenkins,verbitan/jenkins,oleg-nenashev/jenkins,elkingtonmcb/jenkins,everyonce/jenkins,yonglehou/jenkins,patbos/jenkins,everyonce/jenkins,Jochen-A-Fuerbacher/jenkins,vjuranek/jenkins,khmarbaise/jenkins,liupugong/jenkins,rsandell/jenkins,akshayabd/jenkins,sathiya-mit/jenkins,dennisjlee/jenkins,hplatou/jenkins,6WIND/jenkins,viqueen/jenkins,amruthsoft9/Jenkis,ajshastri/jenkins,1and1/jenkins,MichaelPranovich/jenkins_sc,alvarolobato/jenkins,msrb/jenkins,v1v/jenkins,Krasnyanskiy/jenkins,ikedam/jenkins,brunocvcunha/jenkins,fbelzunc/jenkins,6WIND/jenkins,mrooney/jenkins,tfennelly/jenkins,ndeloof/jenkins,olivergondza/jenkins,ns163/jenkins,ndeloof/jenkins,ajshastri/jenkins,kohsuke/hudson,arunsingh/jenkins,albers/jenkins,Jimilian/jenkins,scoheb/jenkins,tfennelly/jenkins,pjanouse/jenkins,292388900/jenkins,oleg-nenashev/jenkins,gitaccountforprashant/gittest,dennisjlee/jenkins,damianszczepanik/jenkins,protazy/jenkins,CodeShane/jenkins,ndeloof/jenkins,amuniz/jenkins,jk47/jenkins,arunsingh/jenkins,DanielWeber/jenkins,hemantojhaa/jenkins,my7seven/jenkins,Krasnyanskiy/jenkins,daniel-beck/jenkins,paulwellnerbou/jenkins,olivergondza/jenkins,intelchen/jenkins,viqueen/jenkins,svanoort/jenkins,vjuranek/jenkins,FarmGeek4Life/jenkins,csimons/jenkins,varmenise/jenkins,Ykus/jenkins,aldaris/jenkins,duzifang/my-jenkins,svanoort/jenkins,wuwen5/jenkins,paulmillar/jenkins,FarmGeek4Life/jenkins,jenkinsci/jenkins,Krasnyanskiy/jenkins,wangyikai/jenkins,damianszczepanik/jenkins,SebastienGllmt/jenkins,msrb/jenkins,akshayabd/jenkins,ikedam/jenkins,escoem/jenkins,gitaccountforprashant/gittest,arunsingh/jenkins,protazy/jenkins,ajshastri/jenkins,rlugojr/jenkins,hashar/jenkins,csimons/jenkins,christ66/jenkins,khmarbaise/jenkins,csimons/jenkins,mdonohue/jenkins,FTG-003/jenkins,CodeShane/jenkins,dbroady1/jenkins,evernat/jenkins,ajshastri/jenkins,iqstack/jenkins,lordofthejars/jenkins,rashmikanta-1984/jenkins,AustinKwang/jenkins,aduprat/jenkins,NehemiahMi/jenkins,svanoort/jenkins,duzifang/my-jenkins,mcanthony/jenkins,pselle/jenkins,dariver/jenkins,fbelzunc/jenkins,lordofthejars/jenkins,viqueen/jenkins,morficus/jenkins,mrooney/jenkins,singh88/jenkins,vijayto/jenkins,gitaccountforprashant/gittest,lilyJi/jenkins,mcanthony/jenkins,pselle/jenkins,lindzh/jenkins,kzantow/jenkins,protazy/jenkins,rlugojr/jenkins,singh88/jenkins,escoem/jenkins,petermarcoen/jenkins,noikiy/jenkins,daniel-beck/jenkins,chbiel/jenkins,verbitan/jenkins,scoheb/jenkins,guoxu0514/jenkins,my7seven/jenkins,godfath3r/jenkins,yonglehou/jenkins,Jochen-A-Fuerbacher/jenkins,FTG-003/jenkins,intelchen/jenkins,gusreiber/jenkins,wangyikai/jenkins,elkingtonmcb/jenkins,vjuranek/jenkins,gitaccountforprashant/gittest,chbiel/jenkins,rashmikanta-1984/jenkins,gusreiber/jenkins,v1v/jenkins,duzifang/my-jenkins,CodeShane/jenkins,paulwellnerbou/jenkins,1and1/jenkins,olivergondza/jenkins,guoxu0514/jenkins,huybrechts/hudson,bpzhang/jenkins,paulmillar/jenkins,Krasnyanskiy/jenkins,6WIND/jenkins,hemantojhaa/jenkins,andresrc/jenkins,tastatur/jenkins,everyonce/jenkins,DanielWeber/jenkins,rsandell/jenkins,tfennelly/jenkins,MichaelPranovich/jenkins_sc,aduprat/jenkins,damianszczepanik/jenkins,sathiya-mit/jenkins,svanoort/jenkins,wuwen5/jenkins,rlugojr/jenkins,elkingtonmcb/jenkins,jpederzolli/jenkins-1,jk47/jenkins,albers/jenkins,escoem/jenkins,1and1/jenkins,liupugong/jenkins,DanielWeber/jenkins,tangkun75/jenkins,dbroady1/jenkins,luoqii/jenkins,tangkun75/jenkins,chbiel/jenkins,292388900/jenkins,jk47/jenkins,tastatur/jenkins,dennisjlee/jenkins,SebastienGllmt/jenkins,vvv444/jenkins,mdonohue/jenkins,hplatou/jenkins,MarkEWaite/jenkins,azweb76/jenkins,albers/jenkins,lordofthejars/jenkins,ChrisA89/jenkins,ChrisA89/jenkins,oleg-nenashev/jenkins,SenolOzer/jenkins,azweb76/jenkins,seanlin816/jenkins,Vlatombe/jenkins,ydubreuil/jenkins,hplatou/jenkins,6WIND/jenkins,alvarolobato/jenkins,stephenc/jenkins,paulmillar/jenkins,vjuranek/jenkins,recena/jenkins,jenkinsci/jenkins,ajshastri/jenkins,NehemiahMi/jenkins,samatdav/jenkins,duzifang/my-jenkins,evernat/jenkins,292388900/jenkins,seanlin816/jenkins,NehemiahMi/jenkins,ErikVerheul/jenkins,soenter/jenkins,gitaccountforprashant/gittest,daniel-beck/jenkins,dariver/jenkins,wangyikai/jenkins,godfath3r/jenkins,Krasnyanskiy/jenkins,rlugojr/jenkins,tastatur/jenkins,NehemiahMi/jenkins,liupugong/jenkins,andresrc/jenkins,jglick/jenkins,jk47/jenkins,Ykus/jenkins,mdonohue/jenkins