The GitHub Actions job "Java CI with Ant" on poi.git/xwpf-hyperlink-lookup has 
failed.
Run started by GitHub user naruto-lgtm (triggered by naruto-lgtm).

Head commit for run:
4ebcb2c00095dfda06f6ca60e98cd2e23926af9d / Nayyar <[email protected]>
index xwpf hyperlinks by id instead of rebuilding on a miss

XWPFDocument.getHyperlinkByID searched the hyperlink list linearly and,
for an id it did not find, rebuilt the list from all relationships of
the document part. The ids come from w:hyperlink elements in the file,
so n hyperlinks with ids that are not hyperlink relationships plus n
hyperlink relationships made resolving them quadratic: a 172 KB docx
with 20,000 of each took 114 s in XWPFWordExtractor with
setFetchHyperlinks(true).

Keep the links in a map by id, and on a miss look up only that
relationship of the package part, so links added after loading, e.g.
by createHyperlinkRun, are still found.

Report URL: https://github.com/apache/poi/actions/runs/43907517557

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to