Fossil SCM
Performance optimization in Th_RenderToBlob().
Commit
b853b5d47115b990d21ce3a5d3e3a47526c9dfe606369beeba472082a82dda16
Parent
118540fa8403265…
1 file changed
+1
-1
+1
-1
| --- src/th_main.c | ||
| +++ src/th_main.c | ||
| @@ -2965,11 +2965,11 @@ | ||
| 2965 | 2965 | if( rc!=TH_OK ) break; |
| 2966 | 2966 | z += i; |
| 2967 | 2967 | if( z[0] ){ z += 6; } |
| 2968 | 2968 | i = 0; |
| 2969 | 2969 | }else{ |
| 2970 | - i++; | |
| 2970 | + i += strcspn(&z[i+1], "<$") + 1; | |
| 2971 | 2971 | } |
| 2972 | 2972 | } |
| 2973 | 2973 | if( rc==TH_ERROR ){ |
| 2974 | 2974 | zResult = (char*)Th_GetResult(g.interp, &n); |
| 2975 | 2975 | sendError(pOut,zResult, n, 1); |
| 2976 | 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++; |
| 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 |