You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avoid quadratic placeholder replacement in PDFObject::formatContent()
formatContent() restores every extracted string/dict placeholder with a full-content
str_replace() in a loop, and does the extraction with a preg_quote()+preg_replace()
per operand; both scan the whole content stream once per operand, so parsing is
quadratic in the number of operands. Restore the placeholders in a single strtr()
pass and use strpos()+substr_replace() for the initial extraction
0 commit comments