Optimize tid lock table
Optimize tid lock table

By making the ets table mnesia_tid_locks an ordered set instead of a
bag, the time for inserting locks for a transaction with large number
of locks is reduced significantly.

basho/otp,isvilen/otp,schlagert/otp,benoitc/otp-1,dumbbell/otp,vic/otp,vladdu/otp,derek121/otp,jj1bdx/otp,tuncer/otp,gjaldon/otp,neeraj9/otp,beni55/otp,emile/otp,getong/otp,bjorng/otp,jemsbhai/otp,VincentHHL/otp,falkevik/otp,ader1990/otp,falkevik/otp,ferd/otp,cnbin/otp,goertzenator/otp,palas/otp,saleyn/otp,bernardd/otp,Teino1978-Corp/erlang-otp,sitexa/otp,fenollp/otp,neeraj9/otp,enikki/otp,vladdu/otp,cobusc/otp,release-project/otp,lantti/otp,lantti/otp,haguenau/otp,RGafiyatullin/otp,paulcager/otp,lianghaivv/otp,cobusc/otp,lrascao/otp,RGafiyatullin/otp,NOMORECOFFEE/otp,erlang/otp,awetzel/otp,lhslll/otp,release-project/otp,RGafiyatullin/otp,kvakvs/otp,erlang/otp,cobusc/otp,yangchengjian/otp,schlagert/otp,bjorng/otp,vic/otp,jamesruan/otp,basho/otp,jemsbhai/otp,bernardd/otp,electricimp/otp,jj1bdx/otp,entropiae/otp,g-andrade/otp,ahmedshafeeq/otp,marquisthunder/otp,sammoth-wazoku/otp,enikki/otp,lucafavatella/otp,getong/otp,vinoski/otp,lemenkov/otp,emacsmirror/erlang,weisslj/otp,jemsbhai/otp,gjaldon/otp,bernardd/otp,lightcyphers/otp,c-rack/otp,dumbbell/otp,kvakvs/otp,matwey/otp,dgud/otp,GinjaNinja32/otp,uabboli/otp,haguenau/otp,massemanet/otp,platinumthinker/otp,neeraj9/otp,vladdu/otp,bsmr-erlang/otp,GinjaNinja32/otp,ader1990/otp,bjorng/otp,ahmedshafeeq/otp,vic/otp,electricimp/otp,emile/otp,RichMorin/otp,vic/otp,bernardd/otp,jamesruan/otp,benoitc/otp-1,aboroska/otp,krishnakumar4a4/otp,platinumthinker/otp,jemsbhai/otp,massemanet/otp,bjorng/otp,c-rack/otp,ader1990/otp,bjorng/otp,paulcager/otp,paladim/otp,emacsmirror/erlang,beni55/otp,RichMorin/otp,derek121/otp,schlagert/otp,NOMORECOFFEE/otp,ahmedshafeeq/otp,benoitc/otp-1,riverrun/otp,paulcager/otp,fenollp/otp,RichMorin/otp,sammoth-wazoku/otp,bsmr-erlang/otp,basho/otp,RaimoNiskanen/otp,vic/otp,potatosalad/otp,jemsbhai/otp,erlang/otp,lianghaivv/otp,psyeugenic/otp,sdebnath/otp,palas/otp,rlipscombe/otp,uabboli/otp,weisslj/otp,matwey/otp,falkevik/otp,dgud/otp,VincentHHL/otp,isvilen/otp,cobusc/otp,weisslj/otp,sdebnath/otp,johanclaesson/otp,emile/otp,bugs-erlang-org/otp,entropiae/otp,msantos/otp,RichMorin/otp,jinshana/otp,emile/otp,getong/otp,potatosalad/otp,lantti/otp,lianghaivv/otp,tuncer/otp,cnbin/otp,lightcyphers/otp,lemenkov/otp,paulcager/otp,cnbin/otp,benoitc/otp-1,bernardd/otp,klarna/otp,erlang/otp,haguenau/otp,sdebnath/otp,bsmr-erlang/otp,ferd/otp,platinumthinker/otp,VincentHHL/otp,derek121/otp,haguenau/otp,lemenkov/otp,entropiae/otp,emile/otp,ahmedshafeeq/otp,benoitc/otp-1,lrascao/otp,yangchengjian/otp,ferd/otp,paladim/otp,jinshana/otp,vinoski/otp,gjaldon/otp,enikki/otp,mikpe/otp,Teino1978-Corp/erlang-otp,potatosalad/otp,psyeugenic/otp,msantos/otp,massemanet/otp,NOMORECOFFEE/otp,palas/otp,paladim/otp,paladim/otp,beni55/otp,c-rack/otp,lrascao/otp,vladdu/otp,palas/otp,g-andrade/otp,lightcyphers/otp,schlagert/otp,GinjaNinja32/otp,mikpe/otp,schlagert/otp,Teino1978-Corp/otp,haguenau/otp,vinoski/otp,bugs-erlang-org/otp,jamesruan/otp,stolen/otp,dgud/otp,ferd/otp,VincentHHL/otp,cobusc/otp,getong/otp,yangchengjian/otp,tuncer/otp,dgud/otp,basho/otp,jamesruan/otp,falkevik/otp,isvilen/otp,stolen/otp,bugs-erlang-org/otp,lhslll/otp,Teino1978-Corp/erlang-otp,release-project/otp,sitexa/otp,emacsmirror/erlang,Teino1978-Corp/erlang-otp,platinumthinker/otp,platinumthinker/otp,jemsbhai/otp,uabboli/otp,release-project/otp,release-project/otp,psyeugenic/otp,rlipscombe/otp,jemsbhai/otp,msantos/otp,VincentHHL/otp,isvilen/otp,RoadRunnr/otp,ferd/otp,RoadRunnr/otp,riverrun/otp,RaimoNiskanen/otp,Teino1978-Corp/otp,c-rack/otp,paladim/otp,g-andrade/otp,jj1bdx/otp,massemanet/otp,g-andrade/otp,electricimp/otp,awetzel/otp,enikki/otp,lhslll/otp,benoitc/otp-1,psyeugenic/otp,potatosalad/otp,sitexa/otp,RaimoNiskanen/otp,lantti/otp,psyeugenic/otp,jinshana/otp,aboroska/otp,tuncer/otp,rlipscombe/otp,psyeugenic/otp,jamesruan/otp,weisslj/otp,VincentHHL/otp,derek121/otp,lantti/otp,release-project/otp,hairyhum/otp,RJ/otp,sitexa/otp,krishnakumar4a4/otp,massemanet/otp,legoscia/otp,krishnakumar4a4/otp,lightcyphers/otp,jj1bdx/otp,emacsmirror/erlang,stolen/otp,saleyn/otp,ferd/otp,psyeugenic/otp,bsmr-erlang/otp,NOMORECOFFEE/otp,isvilen/otp,saleyn/otp,Teino1978-Corp/otp,vinoski/otp,massemanet/otp,RJ/otp,lhslll/otp,lightcyphers/otp,erlang/otp,Teino1978-Corp/otp,vinoski/otp,mujiatong/otp,weisslj/otp,haguenau/otp,getong/otp,RGafiyatullin/otp,falkevik/otp,vladdu/otp,theom/otp,msantos/otp,mujiatong/otp,yangchengjian/otp,derek121/otp,entropiae/otp,gjaldon/otp,jj1bdx/otp,stolen/otp,RichMorin/otp,cnbin/otp,jinshana/otp,GinjaNinja32/otp,aboroska/otp,uabboli/otp,awetzel/otp,cnbin/otp,stolen/otp,johanclaesson/otp,rlipscombe/otp,paulcager/otp,theom/otp,erlang/otp,legoscia/otp,massemanet/otp,sitexa/otp,cobusc/otp,electricimp/otp,RoadRunnr/otp,VincentHHL/otp,basho/otp,neeraj9/otp,emile/otp,lhslll/otp,falkevik/otp,krishnakumar4a4/otp,marquisthunder/otp,kvakvs/otp,theom/otp,entropiae/otp,klarna/otp,lianghaivv/otp,mikpe/otp,emile/otp,jj1bdx/otp,awetzel/otp,schlagert/otp,haguenau/otp,bsmr-erlang/otp,paulcager/otp,ahmedshafeeq/otp,g-andrade/otp,goertzenator/otp,emile/otp,RaimoNiskanen/otp,legoscia/otp,emacsmirror/erlang,RJ/otp,RoadRunnr/otp,vinoski/otp,lucafavatella/otp,uabboli/otp,marquisthunder/otp,dumbbell/otp,paladim/otp,erlang/otp,theom/otp,msantos/otp,dgud/otp,g-andrade/otp,kvakvs/otp,lemenkov/otp,klarna/otp,c-rack/otp,bjorng/otp,legoscia/otp,theom/otp,riverrun/otp,stolen/otp,vladdu/otp,sitexa/otp,isvilen/otp,schlagert/otp,isvilen/otp,matwey/otp,bsmr-erlang/otp,enikki/otp,RGafiyatullin/otp,cobusc/otp,derek121/otp,dumbbell/otp,potatosalad/otp,electricimp/otp,RaimoNiskanen/otp,neeraj9/otp,vinoski/otp,bernardd/otp,rlipscombe/otp,jinshana/otp,legoscia/otp,rlipscombe/otp,vladdu/otp,vic/otp,RaimoNiskanen/otp,msantos/otp,riverrun/otp,RGafiyatullin/otp,ferd/otp,lrascao/otp,enikki/otp,emacsmirror/erlang,beni55/otp,emacsmirror/erlang,matwey/otp,fenollp/otp,lucafavatella/otp,lemenkov/otp,paladim/otp,hairyhum/otp,marquisthunder/otp,sammoth-wazoku/otp,bugs-erlang-org/otp,krishnakumar4a4/otp,goertzenator/otp,getong/otp,mikpe/otp,mujiatong/otp,marquisthunder/otp,hairyhum/otp,electricimp/otp,mikpe/otp,enikki/otp,dumbbell/otp,matwey/otp,beni55/otp,klarna/otp,Teino1978-Corp/erlang-otp,Teino1978-Corp/erlang-otp,benoitc/otp-1,stolen/otp,vinoski/otp,marquisthunder/otp,johanclaesson/otp,sammoth-wazoku/otp,mujiatong/otp,johanclaesson/otp,bjorng/otp,legoscia/otp,RoadRunnr/otp,sdebnath/otp,goertzenator/otp,bjorng/otp,aboroska/otp,bernardd/otp,saleyn/otp,hairyhum/otp,erlang/otp,bernardd/otp,mujiatong/otp,benoitc/otp-1,lantti/otp,sdebnath/otp,legoscia/otp,tuncer/otp,ahmedshafeeq/otp,theom/otp,saleyn/otp,yangchengjian/otp,RichMorin/otp,lrascao/otp,jinshana/otp,aboroska/otp,bsmr-erlang/otp,tuncer/otp,dumbbell/otp,vic/otp,uabboli/otp,GinjaNinja32/otp,klarna/otp,dgud/otp,sammoth-wazoku/otp,lucafavatella/otp,kvakvs/otp,isvilen/otp,dgud/otp,RoadRunnr/otp,lantti/otp,entropiae/otp,RoadRunnr/otp,ader1990/otp,kvakvs/otp,emacsmirror/erlang,aboroska/otp,emile/otp,NOMORECOFFEE/otp,ahmedshafeeq/otp,ader1990/otp,paulcager/otp,RJ/otp,palas/otp,dumbbell/otp,hairyhum/otp,jamesruan/otp,release-project/otp,dumbbell/otp,goertzenator/otp,bugs-erlang-org/otp,electricimp/otp,falkevik/otp,basho/otp,vinoski/otp,lhslll/otp,VincentHHL/otp,goertzenator/otp,fenollp/otp,erlang/otp,bernardd/otp,uabboli/otp,awetzel/otp,ader1990/otp,psyeugenic/otp,jinshana/otp,beni55/otp,gjaldon/otp,jamesruan/otp,jj1bdx/otp,lemenkov/otp,ader1990/otp,neeraj9/otp,jj1bdx/otp,GinjaNinja32/otp,sitexa/otp,matwey/otp,bsmr-erlang/otp,yangchengjian/otp,vladdu/otp,lightcyphers/otp,bjorng/otp,sammoth-wazoku/otp,rlipscombe/otp,weisslj/otp,lemenkov/otp,ferd/otp,RaimoNiskanen/otp,jamesruan/otp,basho/otp,kvakvs/otp,weisslj/otp,awetzel/otp,RichMorin/otp,neeraj9/otp,saleyn/otp,lrascao/otp,emacsmirror/erlang,jinshana/otp,RJ/otp,neeraj9/otp,electricimp/otp,derek121/otp,hairyhum/otp,msantos/otp,sitexa/otp,NOMORECOFFEE/otp,mujiatong/otp,sdebnath/otp,mikpe/otp,electricimp/otp,krishnakumar4a4/otp,rlipscombe/otp,klarna/otp,bugs-erlang-org/otp,mujiatong/otp,getong/otp,entropiae/otp,dgud/otp,potatosalad/otp,mujiatong/otp,lemenkov/otp,enikki/otp,getong/otp,derek121/otp,release-project/otp,bugs-erlang-org/otp,jj1bdx/otp,potatosalad/otp,lucafavatella/otp,isvilen/otp,emacsmirror/erlang,ferd/otp,haguenau/otp,vinoski/otp,ader1990/otp,cnbin/otp,Teino1978-Corp/erlang-otp,RoadRunnr/otp,g-andrade/otp,g-andrade/otp,klarna/otp,uabboli/otp,platinumthinker/otp,fenollp/otp,johanclaesson/otp,RGafiyatullin/otp,lrascao/otp,lucafavatella/otp,lrascao/otp,legoscia/otp,weisslj/otp,rlipscombe/otp,aboroska/otp,basho/otp,falkevik/otp,ahmedshafeeq/otp,gjaldon/otp,matwey/otp,johanclaesson/otp,yangchengjian/otp,fenollp/otp,rlipscombe/otp,dgud/otp,hairyhum/otp,mikpe/otp,vic/otp,isvilen/otp,krishnakumar4a4/otp,aboroska/otp,cobusc/otp,mikpe/otp,johanclaesson/otp,lianghaivv/otp,RichMorin/otp,gjaldon/otp,msantos/otp,cnbin/otp,riverrun/otp,sammoth-wazoku/otp,mikpe/otp,palas/otp,paladim/otp,dumbbell/otp,gjaldon/otp,potatosalad/otp,beni55/otp,stolen/otp,marquisthunder/otp,uabboli/otp,entropiae/otp,lrascao/otp,platinumthinker/otp,dgud/otp,lianghaivv/otp,schlagert/otp,fenollp/otp,lhslll/otp,Teino1978-Corp/otp,johanclaesson/otp,sammoth-wazoku/otp,paulcager/otp,beni55/otp,lightcyphers/otp,erlang/otp,RaimoNiskanen/otp,goertzenator/otp,platinumthinker/otp,RJ/otp,getong/otp,RGafiyatullin/otp,goertzenator/otp,RoadRunnr/otp,falkevik/otp,theom/otp,GinjaNinja32/otp,NOMORECOFFEE/otp,RJ/otp,riverrun/otp,saleyn/otp,lucafavatella/otp,matwey/otp,saleyn/otp,lianghaivv/otp,lianghaivv/otp,potatosalad/otp,release-project/otp,riverrun/otp,lantti/otp,Teino1978-Corp/otp,c-rack/otp,kvakvs/otp,basho/otp,RJ/otp,tuncer/otp,palas/otp,massemanet/otp,weisslj/otp,dumbbell/otp,saleyn/otp,tuncer/otp,yangchengjian/otp,vladdu/otp,jj1bdx/otp,GinjaNinja32/otp,awetzel/otp,g-andrade/otp,aboroska/otp,g-andrade/otp,fenollp/otp,awetzel/otp,cnbin/otp,krishnakumar4a4/otp,kvakvs/otp,bsmr-erlang/otp,mikpe/otp,legoscia/otp,sdebnath/otp,palas/otp,lhslll/otp,matwey/otp,Teino1978-Corp/otp,fenollp/otp,tuncer/otp,lightcyphers/otp,c-rack/otp,jemsbhai/otp,klarna/otp,getong/otp,theom/otp,Teino1978-Corp/otp,RaimoNiskanen/otp,bugs-erlang-org/otp,Teino1978-Corp/erlang-otp,c-rack/otp,ahmedshafeeq/otp,massemanet/otp,potatosalad/otp,NOMORECOFFEE/otp,bjorng/otp,goertzenator/otp,marquisthunder/otp,riverrun/otp,lucafavatella/otp,hairyhum/otp,sdebnath/otp