Refactor -invalidateGlobalRefIfNoNewSubscribersShowUp
Refactor -invalidateGlobalRefIfNoNewSubscribersShowUp

Specifically, avoid block allocations (by avoiding variable capture), and only check RACActiveSignals once per run loop iteration.

add715/ReactiveCocoa,smilypeda/ReactiveCocoa,leichunfeng/ReactiveCocoa,monkeydbobo/ReactiveCocoa,Juraldinio/ReactiveCocoa,bscarano/ReactiveCocoa,LHDsimon/ReactiveCocoa,dz1111/ReactiveCocoa,xulibao/ReactiveCocoa,BrooksWon/ReactiveCocoa,vincentiss/ReactiveCocoa,sdhzwm/ReactiveCocoa,yaoxiaoyong/ReactiveCocoa,SanChain/ReactiveCocoa,Khan/ReactiveCocoa,SuPair/ReactiveCocoa,Farteen/ReactiveCocoa,esttorhe/ReactiveCocoa,fhchina/ReactiveCocoa,alvinvarghese/ReactiveCocoa,pzw224/ReactiveCocoa,BrooksWon/ReactiveCocoa,huiping192/ReactiveCocoa,wpstarnice/ReactiveCocoa,zhigang1992/ReactiveCocoa,Carthage/ReactiveCocoa,cstars135/ReactiveCocoa,victorlin/ReactiveCocoa,hj3938/ReactiveCocoa,libiao88/ReactiveCocoa,koamac/ReactiveCocoa,Ethan89/ReactiveCocoa,CQXfly/ReactiveCocoa,Rupert-RR/ReactiveCocoa,huiping192/ReactiveCocoa,KJin99/ReactiveCocoa,200895045/ReactiveCocoa,ddc391565320/ReactiveCocoa,chieryw/ReactiveCocoa,natestedman/ReactiveCocoa,brightcove/ReactiveCocoa,zhaoguohui/ReactiveCocoa,Juraldinio/ReactiveCocoa,ReactiveCocoa/ReactiveSwift,Farteen/ReactiveCocoa,ericzhou2008/ReactiveCocoa,leichunfeng/ReactiveCocoa,fanghao085/ReactiveCocoa,chieryw/ReactiveCocoa,brasbug/ReactiveCocoa,goodheart/ReactiveCocoa,walkingsmarts/ReactiveCocoa,fanghao085/ReactiveCocoa,zxq3220122/ReactiveCocoa,tornade0913/ReactiveCocoa,nikita-leonov/ReactiveCocoa,jrmiddle/ReactiveCocoa,Ray0218/ReactiveCocoa,hilllinux/ReactiveCocoa,esttorhe/ReactiveCocoa,brasbug/ReactiveCocoa,shuxiashusheng/ReactiveCocoa,GuitarPlayer-Ma/ReactiveCocoa,eyu1988/ReactiveCocoa,smilypeda/ReactiveCocoa,stevielu/ReactiveCocoa,PSPDFKit-labs/ReactiveCocoa,tonyli508/ReactiveCocoa,Farteen/ReactiveCocoa,PSPDFKit-labs/ReactiveCocoa,windgo/ReactiveCocoa,zzqiltw/ReactiveCocoa,imkerberos/ReactiveCocoa,pzw224/ReactiveCocoa,ReactiveCocoa/ReactiveSwift,JohnJin007/ReactiveCocoa,bencochran/ReactiveCocoa,sdhzwm/ReactiveCocoa,zhenlove/ReactiveCocoa,on99/ReactiveCocoa,Remitly/ReactiveCocoa,Remitly/ReactiveCocoa,takeshineshiro/ReactiveCocoa,Liquidsoul/ReactiveCocoa,tonyarnold/ReactiveCocoa,DreamHill/ReactiveCocoa,jeelun/ReactiveCocoa,hilllinux/ReactiveCocoa,takeshineshiro/ReactiveCocoa,jam891/ReactiveCocoa,liufeigit/ReactiveCocoa,kaylio/ReactiveCocoa,dz1111/ReactiveCocoa,DreamHill/ReactiveCocoa,jeelun/ReactiveCocoa,tzongw/ReactiveCocoa,itschaitanya/ReactiveCocoa,richeterre/ReactiveCocoa,buildo/ReactiveCocoa,lixar/ReactiveCocoa,tiger8888/ReactiveCocoa,shaohung001/ReactiveCocoa,ddc391565320/ReactiveCocoa,monkeydbobo/ReactiveCocoa,on99/ReactiveCocoa,eyu1988/ReactiveCocoa,CQXfly/ReactiveCocoa,Khan/ReactiveCocoa,Adlai-Holler/ReactiveCocoa,yangyangluoluo/ReactiveCocoa,SanChain/ReactiveCocoa,ailyanlu/ReactiveCocoa,tornade0913/ReactiveCocoa,Ray0218/ReactiveCocoa,Rupert-RR/ReactiveCocoa,almassapargali/ReactiveCocoa,ioshger0125/ReactiveCocoa,gengjf/ReactiveCocoa,yoichitgy/ReactiveCocoa,yoichitgy/ReactiveCocoa,beni55/ReactiveCocoa,Rupert-RR/ReactiveCocoa,hoanganh6491/ReactiveCocoa,bensonday/ReactiveCocoa,jrmiddle/ReactiveCocoa,sujeking/ReactiveCocoa,imkerberos/ReactiveCocoa,terry408911/ReactiveCocoa,clg0118/ReactiveCocoa,add715/ReactiveCocoa,smilypeda/ReactiveCocoa,stevielu/ReactiveCocoa,luerhouhou/ReactiveCocoa,wpstarnice/ReactiveCocoa,WEIBP/ReactiveCocoa,jianwoo/ReactiveCocoa,zzzworm/ReactiveCocoa,wangqi211/ReactiveCocoa,vincentiss/ReactiveCocoa,beni55/ReactiveCocoa,leelili/ReactiveCocoa,j364960953/ReactiveCocoa,j364960953/ReactiveCocoa,jam891/ReactiveCocoa,taylormoonxu/ReactiveCocoa,dachaoisme/ReactiveCocoa,andersio/ReactiveCocoa,dullgrass/ReactiveCocoa,beni55/ReactiveCocoa,KJin99/ReactiveCocoa,shaohung001/ReactiveCocoa,yangshengchaoios/ReactiveCocoa,llb1119/test,ohwutup/ReactiveCocoa,Juraldinio/ReactiveCocoa,libiao88/ReactiveCocoa,cogddo/ReactiveCocoa,taylormoonxu/ReactiveCocoa,yaoxiaoyong/ReactiveCocoa,JackLian/ReactiveCocoa,SuPair/ReactiveCocoa,Pikdays/ReactiveCocoa,hj3938/ReactiveCocoa,cnbin/ReactiveCocoa,tipbit/ReactiveCocoa,stupidfive/ReactiveCocoa,ztchena/ReactiveCocoa,jsslai/ReactiveCocoa,itschaitanya/ReactiveCocoa,sandyway/ReactiveCocoa,kiurentu/ReactiveCocoa,huiping192/ReactiveCocoa,ailyanlu/ReactiveCocoa,jaylib/ReactiveCocoa,liufeigit/ReactiveCocoa,cnbin/ReactiveCocoa,KuPai32G/ReactiveCocoa,longv2go/ReactiveCocoa,cogddo/ReactiveCocoa,zhenlove/ReactiveCocoa,zhenlove/ReactiveCocoa,juliangrosshauser/ReactiveCocoa,rpowelll/ReactiveCocoa,sandyway/ReactiveCocoa,ceekayel/ReactiveCocoa,msdgwzhy6/ReactiveCocoa,mattpetters/ReactiveCocoa,ohwutup/ReactiveCocoa,shaohung001/ReactiveCocoa,hbucius/ReactiveCocoa,yangshengchaoios/ReactiveCocoa,leelili/ReactiveCocoa,huiping192/ReactiveCocoa,jsslai/ReactiveCocoa,nickcheng/ReactiveCocoa,luerhouhou/ReactiveCocoa,Adlai-Holler/ReactiveCocoa,isghe/ReactiveCocoa,SuPair/ReactiveCocoa,Khan/ReactiveCocoa,mxxiv/ReactiveCocoa,clg0118/ReactiveCocoa,alvinvarghese/ReactiveCocoa,nickcheng/ReactiveCocoa,howandhao/ReactiveCocoa,calebd/ReactiveCocoa,Liquidsoul/ReactiveCocoa,Ray0218/ReactiveCocoa,tonyarnold/ReactiveCocoa,yizzuide/ReactiveCocoa,kaylio/ReactiveCocoa,juliangrosshauser/ReactiveCocoa,yaoxiaoyong/ReactiveCocoa,tiger8888/ReactiveCocoa,esttorhe/ReactiveCocoa,j364960953/ReactiveCocoa,Pingco/ReactiveCocoa,Eveian/ReactiveCocoa,AndyZhaoHe/ReactiveCocoa,yangyangluoluo/ReactiveCocoa,tonyarnold/ReactiveCocoa,koamac/ReactiveCocoa,SmartEncounter/ReactiveCocoa,shuxiashusheng/ReactiveCocoa,xiaoliyang/ReactiveCocoa,BlessNeo/ReactiveCocoa,CQXfly/ReactiveCocoa,rpowelll/ReactiveCocoa,chao95957/ReactiveCocoa,xumaolin/ReactiveCocoa,almassapargali/ReactiveCocoa,KJin99/ReactiveCocoa,kiurentu/ReactiveCocoa,jianwoo/ReactiveCocoa,xiaobing2007/ReactiveCocoa,hj3938/ReactiveCocoa,qq644531343/ReactiveCocoa,xumaolin/ReactiveCocoa,DongDongDongDong/ReactiveCocoa,Adlai-Holler/ReactiveCocoa,icepy/ReactiveCocoa,luerhouhou/ReactiveCocoa,JohnJin007/ReactiveCocoa,add715/ReactiveCocoa,zhukaixy/ReactiveCocoa,DongDongDongDong/ReactiveCocoa,llb1119/test,zzzworm/ReactiveCocoa,sugar2010/ReactiveCocoa,bensonday/ReactiveCocoa,leelili/ReactiveCocoa,xiaobing2007/ReactiveCocoa,jsslai/ReactiveCocoa,Ricowere/ReactiveCocoa,RuiAAPeres/ReactiveCocoa,ikesyo/ReactiveCocoa,sujeking/ReactiveCocoa,Carthage/ReactiveCocoa,ShawnLeee/ReactiveCocoa,ReactiveCocoa/ReactiveSwift,Eveian/ReactiveCocoa,GuitarPlayer-Ma/ReactiveCocoa,lixar/ReactiveCocoa,mtxs007/ReactiveCocoa,nikita-leonov/ReactiveCocoa,stevielu/ReactiveCocoa,hbucius/ReactiveCocoa,zhukaixy/ReactiveCocoa,xulibao/ReactiveCocoa,loupman/ReactiveCocoa,goodheart/ReactiveCocoa,loupman/ReactiveCocoa,dz1111/ReactiveCocoa,xiaobing2007/ReactiveCocoa,nickcheng/ReactiveCocoa,zxq3220122/ReactiveCocoa,OnTheWay1988/ReactiveCocoa,libiao88/ReactiveCocoa,almassapargali/ReactiveCocoa,yizzuide/ReactiveCocoa,brasbug/ReactiveCocoa,tzongw/ReactiveCocoa,kevin-zqw/ReactiveCocoa,yangshengchaoios/ReactiveCocoa,jam891/ReactiveCocoa,zhiwen1024/ReactiveCocoa,valleyman86/ReactiveCocoa,zhiwen1024/ReactiveCocoa,emodeqidao/ReactiveCocoa,dachaoisme/ReactiveCocoa,lixar/ReactiveCocoa,natestedman/ReactiveCocoa,paulyoung/ReactiveCocoa,ShawnLeee/ReactiveCocoa,bencochran/ReactiveCocoa,ztchena/ReactiveCocoa,CCOOOOLL/ReactiveCocoa,335g/ReactiveCocoa,eliperkins/ReactiveCocoa,longv2go/ReactiveCocoa,yonekawa/ReactiveCocoa,xiaoliyang/ReactiveCocoa,juliangrosshauser/ReactiveCocoa,ShawnLeee/ReactiveCocoa,bencochran/ReactiveCocoa,FelixYin66/ReactiveCocoa,KuPai32G/ReactiveCocoa,koamac/ReactiveCocoa,natestedman/ReactiveCocoa,WEIBP/ReactiveCocoa,cnbin/ReactiveCocoa,tzongw/ReactiveCocoa,200895045/ReactiveCocoa,brightcove/ReactiveCocoa,chao95957/ReactiveCocoa,RuiAAPeres/ReactiveCocoa,nickcheng/ReactiveCocoa,nikita-leonov/ReactiveCocoa,stupidfive/ReactiveCocoa,Ricowere/ReactiveCocoa,AllanChen/ReactiveCocoa,ailyanlu/ReactiveCocoa,335g/ReactiveCocoa,towik/ReactiveCocoa,dskatz22/ReactiveCocoa,paulyoung/ReactiveCocoa,zhukaixy/ReactiveCocoa,dullgrass/ReactiveCocoa,icepy/ReactiveCocoa,icepy/ReactiveCocoa,swizzlr/ReactiveCocoa,cstars135/ReactiveCocoa,fhchina/ReactiveCocoa,hoanganh6491/ReactiveCocoa,335g/ReactiveCocoa,AllanChen/ReactiveCocoa,Eveian/ReactiveCocoa,buildo/ReactiveCocoa,BlessNeo/ReactiveCocoa,clg0118/ReactiveCocoa,yytong/ReactiveCocoa,ztchena/ReactiveCocoa,GuitarPlayer-Ma/ReactiveCocoa,tipbit/ReactiveCocoa,Pikdays/ReactiveCocoa,zzzworm/ReactiveCocoa,FelixYin66/ReactiveCocoa,paulyoung/ReactiveCocoa,natan/ReactiveCocoa,yonekawa/ReactiveCocoa,Pingco/ReactiveCocoa,hbucius/ReactiveCocoa,calebd/ReactiveCocoa,fanghao085/ReactiveCocoa,FelixYin66/ReactiveCocoa,eliperkins/ReactiveCocoa,yytong/ReactiveCocoa,ericzhou2008/ReactiveCocoa,OneSmallTree/ReactiveCocoa,eliperkins/ReactiveCocoa,xulibao/ReactiveCocoa,yytong/ReactiveCocoa,xiaoliyang/ReactiveCocoa,mtxs007/ReactiveCocoa,llb1119/test,Remitly/ReactiveCocoa,isghe/ReactiveCocoa,swizzlr/ReactiveCocoa,valleyman86/ReactiveCocoa,howandhao/ReactiveCocoa,ceekayel/ReactiveCocoa,fhchina/ReactiveCocoa,terry408911/ReactiveCocoa,walkingsmarts/ReactiveCocoa,chieryw/ReactiveCocoa,ioshger0125/ReactiveCocoa,gabemdev/ReactiveCocoa,walkingsmarts/ReactiveCocoa,victorlin/ReactiveCocoa,goodheart/ReactiveCocoa,qq644531343/ReactiveCocoa,LHDsimon/ReactiveCocoa,wangqi211/ReactiveCocoa,RuiAAPeres/ReactiveCocoa,Carthage/ReactiveCocoa,PSPDFKit-labs/ReactiveCocoa,natan/ReactiveCocoa,mtxs007/ReactiveCocoa,CCOOOOLL/ReactiveCocoa,emodeqidao/ReactiveCocoa,terry408911/ReactiveCocoa,OneSmallTree/ReactiveCocoa,isghe/ReactiveCocoa,gengjf/ReactiveCocoa,monkeydbobo/ReactiveCocoa,mattpetters/ReactiveCocoa,cogddo/ReactiveCocoa,zhaoguohui/ReactiveCocoa,chao95957/ReactiveCocoa,towik/ReactiveCocoa,BlessNeo/ReactiveCocoa,cstars135/ReactiveCocoa,imkerberos/ReactiveCocoa,Liquidsoul/ReactiveCocoa,200895045/ReactiveCocoa,BrooksWon/ReactiveCocoa,victorlin/ReactiveCocoa,Ricowere/ReactiveCocoa,rpowelll/ReactiveCocoa,liufeigit/ReactiveCocoa,jrmiddle/ReactiveCocoa,dullgrass/ReactiveCocoa,tonyli508/ReactiveCocoa,DongDongDongDong/ReactiveCocoa,valleyman86/ReactiveCocoa,bensonday/ReactiveCocoa,wangqi211/ReactiveCocoa,jianwoo/ReactiveCocoa,WEIBP/ReactiveCocoa,windgo/ReactiveCocoa,jaylib/ReactiveCocoa,SmartEncounter/ReactiveCocoa,JackLian/ReactiveCocoa,gabemdev/ReactiveCocoa,sandyway/ReactiveCocoa,mattpetters/ReactiveCocoa,bscarano/ReactiveCocoa,xumaolin/ReactiveCocoa,mxxiv/ReactiveCocoa,hilllinux/ReactiveCocoa,calebd/ReactiveCocoa,shuxiashusheng/ReactiveCocoa,ericzhou2008/ReactiveCocoa,jackywpy/ReactiveCocoa,eyu1988/ReactiveCocoa,Ethan89/ReactiveCocoa,Ethan89/ReactiveCocoa,towik/ReactiveCocoa,kiurentu/ReactiveCocoa,ceekayel/ReactiveCocoa,andersio/ReactiveCocoa,AlanJN/ReactiveCocoa,jaylib/ReactiveCocoa,jackywpy/ReactiveCocoa,yangyangluoluo/ReactiveCocoa,hoanganh6491/ReactiveCocoa,mxxiv/ReactiveCocoa,vincentiss/ReactiveCocoa,kaylio/ReactiveCocoa,jackywpy/ReactiveCocoa,jaylib/ReactiveCocoa,on99/ReactiveCocoa,AndyZhaoHe/ReactiveCocoa,gengjf/ReactiveCocoa,longv2go/ReactiveCocoa,SanChain/ReactiveCocoa,OneSmallTree/ReactiveCocoa,CCOOOOLL/ReactiveCocoa,msdgwzhy6/ReactiveCocoa,yizzuide/ReactiveCocoa,yonekawa/ReactiveCocoa,zhigang1992/ReactiveCocoa,AndyZhaoHe/ReactiveCocoa,sujeking/ReactiveCocoa,ikesyo/ReactiveCocoa,JackLian/ReactiveCocoa,LHDsimon/ReactiveCocoa,tonyli508/ReactiveCocoa,sugar2010/ReactiveCocoa,zhigang1992/ReactiveCocoa,AlanJN/ReactiveCocoa,qq644531343/ReactiveCocoa,tiger8888/ReactiveCocoa,zxq3220122/ReactiveCocoa,ioshger0125/ReactiveCocoa,takeshineshiro/ReactiveCocoa,dachaoisme/ReactiveCocoa,dskatz22/ReactiveCocoa,natan/ReactiveCocoa,buildo/ReactiveCocoa,zhaoguohui/ReactiveCocoa,stupidfive/ReactiveCocoa,howandhao/ReactiveCocoa,richeterre/ReactiveCocoa,andersio/ReactiveCocoa,zhiwen1024/ReactiveCocoa,richeterre/ReactiveCocoa,OnTheWay1988/ReactiveCocoa,KuPai32G/ReactiveCocoa,zzqiltw/ReactiveCocoa,yoichitgy/ReactiveCocoa,taylormoonxu/ReactiveCocoa,loupman/ReactiveCocoa,AlanJN/ReactiveCocoa,sdhzwm/ReactiveCocoa,leichunfeng/ReactiveCocoa,tornade0913/ReactiveCocoa,emodeqidao/ReactiveCocoa,kevin-zqw/ReactiveCocoa,ddc391565320/ReactiveCocoa,sugar2010/ReactiveCocoa,DreamHill/ReactiveCocoa,jeelun/ReactiveCocoa,dskatz22/ReactiveCocoa,Pikdays/ReactiveCocoa,wpstarnice/ReactiveCocoa,brightcove/ReactiveCocoa,Ricowere/ReactiveCocoa,windgo/ReactiveCocoa,pzw224/ReactiveCocoa,Pingco/ReactiveCocoa,esttorhe/ReactiveCocoa,ohwutup/ReactiveCocoa,msdgwzhy6/ReactiveCocoa,OnTheWay1988/ReactiveCocoa,bscarano/ReactiveCocoa,itschaitanya/ReactiveCocoa,alvinvarghese/ReactiveCocoa,zzqiltw/ReactiveCocoa,kevin-zqw/ReactiveCocoa,JohnJin007/ReactiveCocoa