texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Gavin D. Smith
Date: Fri, 20 Oct 2023 16:14:47 -0400 (EDT)

branch: master
commit 12b7da7f3b3387870d10575d628646a98876837b
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Fri Oct 20 21:14:23 2023 +0100

    * tp/Texinfo/XS/xspara.c (xspara_add_text):
    Operate on several non-space, non-doublewidth
    characters at once.  This appears to produce a significant,
    measurable speedup of about 2%.
---
 ChangeLog              | 7 +++++++
 tp/Texinfo/XS/xspara.c | 3 ++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 753c714283..e2f70dc28a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-10-20  Gavin Smith <gavinsmith0123@gmail.com>
+
+       * tp/Texinfo/XS/xspara.c (xspara_add_text):
+       Operate on several non-space, non-doublewidth
+       characters at once.  This appears to produce a significant,
+       measurable speedup of about 2%.
+
 2023-10-20  Gavin Smith <gavinsmith0123@gmail.com>
 
        * tp/Texinfo/XS/xspara.c (xspara_add_text):
diff --git a/tp/Texinfo/XS/xspara.c b/tp/Texinfo/XS/xspara.c
index 58901d12a8..2e3f168f8a 100644
--- a/tp/Texinfo/XS/xspara.c
+++ b/tp/Texinfo/XS/xspara.c
@@ -987,7 +987,8 @@ xspara_add_text (char *text, int len)
           /* TODO: test just one character at a time to start.  then
              we can gradually work on the various blocks of
              code to operate on multiple characters. */
-          if (1 || next_type != type || next_type == type_finished)
+          if (type != type_regular
+              || next_type != type || next_type == type_finished)
             break;
 
           q += next_len; len -= next_len;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]