summaryrefslogtreecommitdiff
path: root/core/fxge/cfx_fontmapper.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-05-21 18:36:08 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-21 18:36:08 +0000
commit588a35b1db1e03721af62a02ec910c7583b7118a (patch)
tree6e828f88fb88d15e61e756cdfa4872109cee0db4 /core/fxge/cfx_fontmapper.cpp
parent9e17392183861a2b8b64abb4d528c79613ad3d57 (diff)
downloadpdfium-588a35b1db1e03721af62a02ec910c7583b7118a.tar.xz
Avoid indexing into std::vector inside a tight loop.chromium/3437
In CCodec_FaxDecoder::v_GetNextLine(), a fixed size vector often needs to be inverted. Doing so without checking bounds on every access makes a big difference in non-optimized builds. BUG=chromium:843899 Change-Id: Iecc0a3da22631a289745245563dab7a7c3c458d0 Reviewed-on: https://pdfium-review.googlesource.com/32744 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxge/cfx_fontmapper.cpp')
0 files changed, 0 insertions, 0 deletions