sys_pre_expand: Eliminate bottleneck for modules with many functions
sys_pre_expand: Eliminate bottleneck for modules with many functions

Use a gb_set instead of an ordset to store the set of defined
functions in the module to avoid quadritic time complexity.

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