aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/beam_utils_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-04-26 07:12:26 +0200
committerBjörn Gustavsson <[email protected]>2015-04-29 12:25:06 +0200
commitc64199f4fce6c47323014b29623f78d0b3aad24f (patch)
tree3d28cb822a3c105e4ced0c3c4ced9aea6b058ca4 /lib/compiler/test/beam_utils_SUITE.erl
parent31779e0772006d822bb35b3f3fe0f0623d021aff (diff)
downloadotp-c64199f4fce6c47323014b29623f78d0b3aad24f.tar.gz
otp-c64199f4fce6c47323014b29623f78d0b3aad24f.tar.bz2
otp-c64199f4fce6c47323014b29623f78d0b3aad24f.zip
beam_asm: Speed up encoding of large numbers
The misc_SUITE:integer_encoding/1 test case is annoyingly slow. Rewrite the encoding of integers in beam_asm to use the binary:encode_unsigned/1 BIF. Also tweak the test case itself. Scale the down the maximum size of the numbers being generated, but also add test of numbers around boundaries of power of two (which are the numbers most likely to expose bugs in the encoding).
Diffstat (limited to 'lib/compiler/test/beam_utils_SUITE.erl')
0 files changed, 0 insertions, 0 deletions