about summary refs log tree commit diff
path: root/src/librustdoc/html/static/source-script.js
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2021-07-01 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2021-07-01 13:30:00 +0200
commit7a410763facea6aab28cdaeb133179b11a979eb6 (patch)
treec44f9470f57a74d537efe4a48044890b26e77ac4 /src/librustdoc/html/static/source-script.js
parentf8ac8fdacf66b351c6479b0c8313e3e57e571ba4 (diff)
downloadrust-7a410763facea6aab28cdaeb133179b11a979eb6.tar.gz
rust-7a410763facea6aab28cdaeb133179b11a979eb6.zip
Avoid byte to char position conversions in is_multiline
Converting a byte position into a char position is currently linear in
the number of multibyte characters in the source code. Avoid it when
checking if a range spans across lines.

This makes it feasible to compile source files with a large number of
multibyte characters.
Diffstat (limited to 'src/librustdoc/html/static/source-script.js')
0 files changed, 0 insertions, 0 deletions