diff options
author | José Valim <[email protected]> | 2019-07-19 23:25:16 +0200 |
---|---|---|
committer | José Valim <[email protected]> | 2019-07-19 23:31:52 +0200 |
commit | 7e42e6a63d6876b6a03f50f571e5e850c9b771e8 (patch) | |
tree | ed9f896511904bef55b14d4e9980211e134af157 /lib/asn1 | |
parent | bb4955e083e34be40a9e0d5c0831e5b1498d11df (diff) | |
download | otp-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/asn1')
0 files changed, 0 insertions, 0 deletions