diff options
author | José Valim <[email protected]> | 2015-02-19 11:46:14 +0100 |
---|---|---|
committer | José Valim <[email protected]> | 2015-02-19 11:46:14 +0100 |
commit | e8398cce2451f6323eb5d8cce4adf4d5b69bb098 (patch) | |
tree | b8f632c638b93f7430adb09b05a286722a94ec8e /lib/stdlib/test/supervisor_deadlock.erl | |
parent | ef8b1e3e8c908379cec8376ed515c920682224f9 (diff) | |
download | otp-e8398cce2451f6323eb5d8cce4adf4d5b69bb098.tar.gz otp-e8398cce2451f6323eb5d8cce4adf4d5b69bb098.tar.bz2 otp-e8398cce2451f6323eb5d8cce4adf4d5b69bb098.zip |
Short-circuit common dict operations
Stop traversing all segments and buckets of empty
dictionaries by adding a clause that checks the
dictionary size.
This improved compilation of an erlang project from
7.5s to 5.5s seconds when trying out a sample
implementation of erl_lint that uses dicts.
Diffstat (limited to 'lib/stdlib/test/supervisor_deadlock.erl')
0 files changed, 0 insertions, 0 deletions