diff options
author | Burke Libbey <burke@libbey.me> | 2013-04-25 20:43:54 -0500 |
---|---|---|
committer | Burke Libbey <burke@libbey.me> | 2013-05-08 11:55:02 -0500 |
commit | 738dbc0b3955531345354475adc990e4a273bba8 (patch) | |
tree | bde4aad75e418b784dc2c891ac8c9b0f8ff8b48c /tools | |
parent | ce71606abad632c0f94f3e0d576b313a15b9d6af (diff) | |
download | rails-738dbc0b3955531345354475adc990e4a273bba8.tar.gz rails-738dbc0b3955531345354475adc990e4a273bba8.tar.bz2 rails-738dbc0b3955531345354475adc990e4a273bba8.zip |
Use ruby's Encoding support for tidy_bytes
The previous implementation was quite slow. This leverages some of the
transcoding abilities built into Ruby 1.9 instead. It is roughly 96%
faster.
The roundtrip through UTF_8_MAC here is because ruby won't let you
transcode from UTF_8 to UTF_8. I chose the closest encoding I could
find as an intermediate.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions