]> git.lyx.org Git - lyx.git/commit
Remove performance bottleneck in getAuthors()
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 5 Jul 2024 12:05:26 +0000 (14:05 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 5 Jul 2024 16:54:03 +0000 (18:54 +0200)
commit0f35e3141bc5b6baf2eb44bc63a34b5427db2cd5
tree0c638738f5794977424a496fd734ed5852ec14d0
parent46d1d6e0d384bea969a55426bef22e03bc231bf8
Remove performance bottleneck in getAuthors()

The regex is expensive which is especially noticeable with very long
author lists.

This introduces a case-insensitive subst() variant which is much faster.

(cherry picked from commit 8ba74fe9589fca3b00134e4d4f1fc130ad960c69)
src/BiblioInfo.cpp
src/support/lstrings.cpp
src/support/lstrings.h