slavapestov/factor — Issue #248: Decoders are practically unusable due to performance issues
Author: erg
Created: 2011-10-12 01:09:19+00:00
State: open

Decoding vs >string:

700,000 [ uchar-array{ 97 97 97 97 97 97 32 32 } ascii decode drop ] times
Running time: 8.620117721 seconds

700,000 [ uchar-array{ 97 97 97 97 97 97 32 32 } utf8 decode drop ] times
Running time: 8.673644729999999 seconds

700,000 [ uchar-array{ 97 97 97 97 97 97 32 32 } >string drop ] times
Running time: 0.243419865 seconds

Using decode is about 36x slower than >string.