#111130Use native offsets when scanning HTML and placeholders
Description
Use strcspn() offsets in HtmlParser and ContentObjectRenderer instead of copying the remaining string with substr() before each scan. Preserve existing parsing behavior, including incomplete tags and placeholders, and cover delimiter boundaries, Unicode and binary content. Benchmarks show reduced parsing time for long, tag-heavy HTML.
Reviews 1
History 12
-
Gerrit Code Review pushed patch set 1 for main to change 96813 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-18T11:53:13+00:00" > 10/18/26, 11:53 </span> -
Wouter Wolters commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-10-18T14:30:19+00:00" > 10/18/26, 14:30 </span>
Applied in changeset commit:7b2169c09caf30073415efd68ab60c069d9adc78.