Improve performance of check_invariants(). Over-the-shoulder CR by Jeroen.
Improve performance of check_invariants(). Over-the-shoulder CR by Jeroen.

scripni/rethinkdb,pap/rethinkdb,losywee/rethinkdb,eliangidoni/rethinkdb,bpradipt/rethinkdb,KSanthanam/rethinkdb,AntouanK/rethinkdb,ayumilong/rethinkdb,matthaywardwebdesign/rethinkdb,ajose01/rethinkdb,greyhwndz/rethinkdb,ayumilong/rethinkdb,mcanthony/rethinkdb,gavioto/rethinkdb,alash3al/rethinkdb,mquandalle/rethinkdb,sbusso/rethinkdb,elkingtonmcb/rethinkdb,captainpete/rethinkdb,Wilbeibi/rethinkdb,robertjpayne/rethinkdb,tempbottle/rethinkdb,losywee/rethinkdb,alash3al/rethinkdb,sontek/rethinkdb,sontek/rethinkdb,captainpete/rethinkdb,pap/rethinkdb,wkennington/rethinkdb,dparnell/rethinkdb,dparnell/rethinkdb,lenstr/rethinkdb,tempbottle/rethinkdb,4talesa/rethinkdb,KSanthanam/rethinkdb,ayumilong/rethinkdb,ajose01/rethinkdb,Wilbeibi/rethinkdb,Qinusty/rethinkdb,yaolinz/rethinkdb,yaolinz/rethinkdb,mcanthony/rethinkdb,ayumilong/rethinkdb,yaolinz/rethinkdb,captainpete/rethinkdb,losywee/rethinkdb,jmptrader/rethinkdb,eliangidoni/rethinkdb,captainpete/rethinkdb,matthaywardwebdesign/rethinkdb,lenstr/rethinkdb,matthaywardwebdesign/rethinkdb,catroot/rethinkdb,RubenKelevra/rethinkdb,AntouanK/rethinkdb,mcanthony/rethinkdb,bchavez/rethinkdb,scripni/rethinkdb,gavioto/rethinkdb,dparnell/rethinkdb,elkingtonmcb/rethinkdb,bchavez/rethinkdb,4talesa/rethinkdb,robertjpayne/rethinkdb,AntouanK/rethinkdb,spblightadv/rethinkdb,spblightadv/rethinkdb,sontek/rethinkdb,catroot/rethinkdb,robertjpayne/rethinkdb,RubenKelevra/rethinkdb,grandquista/rethinkdb,Wilbeibi/rethinkdb,matthaywardwebdesign/rethinkdb,JackieXie168/rethinkdb,gavioto/rethinkdb,spblightadv/rethinkdb,spblightadv/rethinkdb,pap/rethinkdb,bpradipt/rethinkdb,robertjpayne/rethinkdb,matthaywardwebdesign/rethinkdb,eliangidoni/rethinkdb,4talesa/rethinkdb,sontek/rethinkdb,dparnell/rethinkdb,sebadiaz/rethinkdb,eliangidoni/rethinkdb,grandquista/rethinkdb,greyhwndz/rethinkdb,gavioto/rethinkdb,yakovenkodenis/rethinkdb,KSanthanam/rethinkdb,spblightadv/rethinkdb,sbusso/rethinkdb,greyhwndz/rethinkdb,victorbriz/rethinkdb,bpradipt/rethinkdb,ajose01/rethinkdb,sebadiaz/rethinkdb,yaolinz/rethinkdb,bpradipt/rethinkdb,Qinusty/rethinkdb,catroot/rethinkdb,sontek/rethinkdb,ayumilong/rethinkdb,sbusso/rethinkdb,eliangidoni/rethinkdb,jmptrader/rethinkdb,yakovenkodenis/rethinkdb,ayumilong/rethinkdb,gavioto/rethinkdb,sontek/rethinkdb,niieani/rethinkdb,Wilbeibi/rethinkdb,bchavez/rethinkdb,alash3al/rethinkdb,rrampage/rethinkdb,greyhwndz/rethinkdb,matthaywardwebdesign/rethinkdb,bpradipt/rethinkdb,grandquista/rethinkdb,mbroadst/rethinkdb,rrampage/rethinkdb,mbroadst/rethinkdb,mquandalle/rethinkdb,mquandalle/rethinkdb,rrampage/rethinkdb,wkennington/rethinkdb,scripni/rethinkdb,ajose01/rethinkdb,dparnell/rethinkdb,mcanthony/rethinkdb,Wilbeibi/rethinkdb,spblightadv/rethinkdb,ajose01/rethinkdb,mbroadst/rethinkdb,alash3al/rethinkdb,sbusso/rethinkdb,mbroadst/rethinkdb,scripni/rethinkdb,Qinusty/rethinkdb,lenstr/rethinkdb,yakovenkodenis/rethinkdb,JackieXie168/rethinkdb,jmptrader/rethinkdb,sbusso/rethinkdb,sebadiaz/rethinkdb,wkennington/rethinkdb,robertjpayne/rethinkdb,robertjpayne/rethinkdb,tempbottle/rethinkdb,yakovenkodenis/rethinkdb,yakovenkodenis/rethinkdb,JackieXie168/rethinkdb,4talesa/rethinkdb,mcanthony/rethinkdb,yaolinz/rethinkdb,gavioto/rethinkdb,greyhwndz/rethinkdb,victorbriz/rethinkdb,catroot/rethinkdb,losywee/rethinkdb,AntouanK/rethinkdb,dparnell/rethinkdb,Wilbeibi/rethinkdb,pap/rethinkdb,sbusso/rethinkdb,rrampage/rethinkdb,losywee/rethinkdb,jmptrader/rethinkdb,spblightadv/rethinkdb,captainpete/rethinkdb,tempbottle/rethinkdb,losywee/rethinkdb,sbusso/rethinkdb,captainpete/rethinkdb,rrampage/rethinkdb,eliangidoni/rethinkdb,losywee/rethinkdb,tempbottle/rethinkdb,mcanthony/rethinkdb,niieani/rethinkdb,niieani/rethinkdb,wkennington/rethinkdb,JackieXie168/rethinkdb,mcanthony/rethinkdb,scripni/rethinkdb,eliangidoni/rethinkdb,matthaywardwebdesign/rethinkdb,mquandalle/rethinkdb,victorbriz/rethinkdb,yakovenkodenis/rethinkdb,lenstr/rethinkdb,dparnell/rethinkdb,JackieXie168/rethinkdb,pap/rethinkdb,captainpete/rethinkdb,scripni/rethinkdb,tempbottle/rethinkdb,jmptrader/rethinkdb,RubenKelevra/rethinkdb,greyhwndz/rethinkdb,yaolinz/rethinkdb,mbroadst/rethinkdb,pap/rethinkdb,robertjpayne/rethinkdb,Wilbeibi/rethinkdb,AntouanK/rethinkdb,Qinusty/rethinkdb,eliangidoni/rethinkdb,sontek/rethinkdb,sebadiaz/rethinkdb,rrampage/rethinkdb,pap/rethinkdb,grandquista/rethinkdb,bchavez/rethinkdb,pap/rethinkdb,scripni/rethinkdb,JackieXie168/rethinkdb,gavioto/rethinkdb,elkingtonmcb/rethinkdb,niieani/rethinkdb,KSanthanam/rethinkdb,catroot/rethinkdb,yaolinz/rethinkdb,alash3al/rethinkdb,tempbottle/rethinkdb,losywee/rethinkdb,bchavez/rethinkdb,mquandalle/rethinkdb,jmptrader/rethinkdb,greyhwndz/rethinkdb,KSanthanam/rethinkdb,eliangidoni/rethinkdb,lenstr/rethinkdb,dparnell/rethinkdb,lenstr/rethinkdb,RubenKelevra/rethinkdb,bpradipt/rethinkdb,bchavez/rethinkdb,elkingtonmcb/rethinkdb,Qinusty/rethinkdb,KSanthanam/rethinkdb,tempbottle/rethinkdb,wkennington/rethinkdb,Wilbeibi/rethinkdb,elkingtonmcb/rethinkdb,matthaywardwebdesign/rethinkdb,mbroadst/rethinkdb,RubenKelevra/rethinkdb,jmptrader/rethinkdb,catroot/rethinkdb,lenstr/rethinkdb,bpradipt/rethinkdb,ajose01/rethinkdb,elkingtonmcb/rethinkdb,niieani/rethinkdb,sebadiaz/rethinkdb,grandquista/rethinkdb,scripni/rethinkdb,4talesa/rethinkdb,JackieXie168/rethinkdb,mbroadst/rethinkdb,mquandalle/rethinkdb,mbroadst/rethinkdb,mquandalle/rethinkdb,sebadiaz/rethinkdb,gavioto/rethinkdb,AntouanK/rethinkdb,yakovenkodenis/rethinkdb,Qinusty/rethinkdb,Qinusty/rethinkdb,ayumilong/rethinkdb,niieani/rethinkdb,greyhwndz/rethinkdb,rrampage/rethinkdb,mbroadst/rethinkdb,spblightadv/rethinkdb,victorbriz/rethinkdb,jmptrader/rethinkdb,niieani/rethinkdb,lenstr/rethinkdb,grandquista/rethinkdb,sontek/rethinkdb,elkingtonmcb/rethinkdb,sebadiaz/rethinkdb,wkennington/rethinkdb,KSanthanam/rethinkdb,RubenKelevra/rethinkdb,ayumilong/rethinkdb,Qinusty/rethinkdb,yakovenkodenis/rethinkdb,AntouanK/rethinkdb,4talesa/rethinkdb,sbusso/rethinkdb,catroot/rethinkdb,wkennington/rethinkdb,yaolinz/rethinkdb,robertjpayne/rethinkdb,elkingtonmcb/rethinkdb,bchavez/rethinkdb,victorbriz/rethinkdb,AntouanK/rethinkdb,mquandalle/rethinkdb,dparnell/rethinkdb,niieani/rethinkdb,ajose01/rethinkdb,robertjpayne/rethinkdb,RubenKelevra/rethinkdb,KSanthanam/rethinkdb,4talesa/rethinkdb,bpradipt/rethinkdb,RubenKelevra/rethinkdb,catroot/rethinkdb,captainpete/rethinkdb,wkennington/rethinkdb,bpradipt/rethinkdb,grandquista/rethinkdb,victorbriz/rethinkdb,alash3al/rethinkdb,alash3al/rethinkdb,Qinusty/rethinkdb,grandquista/rethinkdb,alash3al/rethinkdb,victorbriz/rethinkdb,rrampage/rethinkdb,mcanthony/rethinkdb,sebadiaz/rethinkdb,bchavez/rethinkdb,JackieXie168/rethinkdb,4talesa/rethinkdb,ajose01/rethinkdb,victorbriz/rethinkdb,JackieXie168/rethinkdb,grandquista/rethinkdb,bchavez/rethinkdb