Fossil SCM

Performance optimization in Th_RenderToBlob().

drh 2025-08-20 00:03 trunk
Commit b853b5d47115b990d21ce3a5d3e3a47526c9dfe606369beeba472082a82dda16
1 file changed +1 -1
+1 -1
--- src/th_main.c
+++ src/th_main.c
@@ -2965,11 +2965,11 @@
29652965
if( rc!=TH_OK ) break;
29662966
z += i;
29672967
if( z[0] ){ z += 6; }
29682968
i = 0;
29692969
}else{
2970
- i++;
2970
+ i += strcspn(&z[i+1], "<$") + 1;
29712971
}
29722972
}
29732973
if( rc==TH_ERROR ){
29742974
zResult = (char*)Th_GetResult(g.interp, &n);
29752975
sendError(pOut,zResult, n, 1);
29762976
--- src/th_main.c
+++ src/th_main.c
@@ -2965,11 +2965,11 @@
2965 if( rc!=TH_OK ) break;
2966 z += i;
2967 if( z[0] ){ z += 6; }
2968 i = 0;
2969 }else{
2970 i++;
2971 }
2972 }
2973 if( rc==TH_ERROR ){
2974 zResult = (char*)Th_GetResult(g.interp, &n);
2975 sendError(pOut,zResult, n, 1);
2976
--- src/th_main.c
+++ src/th_main.c
@@ -2965,11 +2965,11 @@
2965 if( rc!=TH_OK ) break;
2966 z += i;
2967 if( z[0] ){ z += 6; }
2968 i = 0;
2969 }else{
2970 i += strcspn(&z[i+1], "<$") + 1;
2971 }
2972 }
2973 if( rc==TH_ERROR ){
2974 zResult = (char*)Th_GetResult(g.interp, &n);
2975 sendError(pOut,zResult, n, 1);
2976

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button