)]}'
{
  "commit": "ebc92cef9c50002964f28fde6a279752cee0ada7",
  "tree": "17e2be36d5bdde1a848a3be5fe1ffef703da46ef",
  "parents": [
    "6f1b15f6fb27b155e4f6cc565f398739198e1e2e"
  ],
  "author": {
    "name": "Lei Zhang",
    "email": "thestig@chromium.org",
    "time": "Fri Jan 17 22:35:02 2020 +0000"
  },
  "committer": {
    "name": "Chromium commit bot",
    "email": "commit-bot@chromium.org",
    "time": "Fri Jan 17 22:35:02 2020 +0000"
  },
  "message": "Improve FPDFLink_LoadWebLinks() performance.\n\nInternally, FPDFLink_LoadWebLinks() calls CPDF_LinkExtract::ParseLink(),\nwhich in turn calls CPDF_TextPage::GetPageText() repeatedly to get\nsub-strings from CPDF_TextPage. GetPageText() has to do many repeated\ncalculations each time it is called, so this makes ParseLink() really\nslow for pages with lots of text.\n\nAvoud this problem by calling CPDF_TextPage::GetAllPageText() once to\nextract the text. Then use WideString::Mid() to get the desired\nsub-strings.\n\nBug: b/146845409\nChange-Id: I5792436d32cd158401f01bd67fca34baca7dfbeb\nReviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/65310\nReviewed-by: Tom Sepez \u003ctsepez@chromium.org\u003e\nCommit-Queue: Lei Zhang \u003cthestig@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7f66832231f9d02639bc1a87c43ec0a67795e600",
      "old_mode": 33188,
      "old_path": "core/fpdftext/cpdf_linkextract.cpp",
      "new_id": "91c7e4bc6582735e59870500777aeac7d16a654e",
      "new_mode": 33188,
      "new_path": "core/fpdftext/cpdf_linkextract.cpp"
    }
  ]
}
