7

Avoid byte to char position conversions in `is_multiline` by tmiasko · Pull Requ...

 3 years ago
source link: https://github.com/rust-lang/rust/pull/86778
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Copy link

Contributor

tmiasko commented 8 days ago

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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK