> Sub TestReplace
> s=Replace(s, " ", "*",1,-1,1)
> Msgbox "time=" & (GetSystemTicks-t)
> End Sub
This code runs about 7 s on my system, and time increases as O(n^2). It must run instantly.
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":
tdf#132388: reimplement SbRtl_Replace
It will be available in 7.0.0.
The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
Build ID: 4ba1909f12b49f020195b5e767045340717ce6df
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: x11;
Locale: en-US (en_US.UTF-8); UI-Language: en-US
@Mike Kaganski, thanks for fixing this issue!
Version 18.104.22.168.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)