~vcs-imports/nano/master

Viewing all changes in revision 7247.

  • Committer: Benno Schulenberg
  • Date: 2018-06-04 12:07:43 UTC
  • Revision ID: git-v1:9a7ba5db7949e441dcdfa7f445aa2a132d41428a
chars: speed up the parsing of a character for the plain ASCII case

Again, if the most significant bit of a UTF-8 byte is zero, it means
the character is a single byte and we can skip the call of mblen(),
*and* if the character is one byte it also occupies just one column,
because all ASCII characters are single-column characters -- apart
from control codes.

This partially addresses https://savannah.gnu.org/bugs/?51491.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: