diff options
author | Björn Gustavsson <[email protected]> | 2015-03-19 12:25:40 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-04-10 12:33:23 +0200 |
commit | 8724991b13d3de1f47a9b297d85a2a055992ba66 (patch) | |
tree | 3b6ad27e2d9dc5a2a2066ac9bb8baad1fb9951e9 /lib/stdlib/src/error_logger_tty_h.erl | |
parent | f25d4d038667f6d460b6eadc026fb825bfe390a8 (diff) | |
download | otp-8724991b13d3de1f47a9b297d85a2a055992ba66.tar.gz otp-8724991b13d3de1f47a9b297d85a2a055992ba66.tar.bz2 otp-8724991b13d3de1f47a9b297d85a2a055992ba66.zip |
Optimize unicode_SUITE:ex_binaries_errors* test cases
Refactor the code so that the error test cases for utf16 can
share the code for big and little endian. Do the same for utf32.
The major optimization is the observation that the following code:
byte_size(unicode:characters_to_binary(List, unicode, {utf16,big})
can be replaced with:
2*length(List)
which is much faster. (That optimization is not safe in general,
but for the lists used in the error tests cases, it is.)
Diffstat (limited to 'lib/stdlib/src/error_logger_tty_h.erl')
0 files changed, 0 insertions, 0 deletions