aboutsummaryrefslogtreecommitdiffstats
path: root/lib/edoc
diff options
context:
space:
mode:
authorJosé Valim <[email protected]>2019-07-19 23:25:16 +0200
committerJosé Valim <[email protected]>2019-07-19 23:31:52 +0200
commit7e42e6a63d6876b6a03f50f571e5e850c9b771e8 (patch)
treeed9f896511904bef55b14d4e9980211e134af157 /lib/edoc
parentbb4955e083e34be40a9e0d5c0831e5b1498d11df (diff)
downloadotp-7e42e6a63d6876b6a03f50f571e5e850c9b771e8.tar.gz
otp-7e42e6a63d6876b6a03f50f571e5e850c9b771e8.tar.bz2
otp-7e42e6a63d6876b6a03f50f571e5e850c9b771e8.zip
Optimize is_subset and is_disjoint in cerl_sets
The new implementation use maps iterators and are more perfomant in banchmarks by roughly 10%. More importantly, the iterators approach allow us to short-circuit and abort early. fold and filter have also been changed to use iterators. We could simply delegate to the maps' functions, but inlining the implementation allows us to skip a double anonymous function dispatch.
Diffstat (limited to 'lib/edoc')
0 files changed, 0 insertions, 0 deletions