Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(814)

Issue 2483633002: Do not load main cross refs for first page in linearized pdf. (Closed)

Created:
4 years, 1 month ago by snake
Modified:
4 years, 1 month ago
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Do not load main cross ref table for first page in linearized pdf. For the first page in linearized PDFs, it is not necessary to load the main xref table, because it have separate special xref table in the file header. This decreasing the time to show first page in PDF plugin. Committed: https://pdfium.googlesource.com/pdfium/+/61f8e9c5aeb0d8cb5477e0248b685214746bada7

Patch Set 1 #

Patch Set 2 : Do not load main cross refs for first page in linearized pdf. #

Patch Set 3 : Fix XFA pages availability.` #

Total comments: 9

Patch Set 4 : Fix review issues.` #

Patch Set 5 : Fix review issues.` #

Patch Set 6 : fix compilation. #

Patch Set 7 : fix compilation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -44 lines) Patch
M core/fpdfapi/parser/cpdf_data_avail.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M core/fpdfapi/parser/cpdf_data_avail.cpp View 1 2 3 4 5 6 12 chunks +55 lines, -41 lines 0 comments Download
M core/fpdfapi/parser/cpdf_parser.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/fpdf_dataavail_embeddertest.cpp View 1 2 3 4 chunks +52 lines, -1 line 0 comments Download

Messages

Total messages: 61 (34 generated)
snake
4 years, 1 month ago (2016-11-05 01:44:23 UTC) #3
dsinclair
Deferring to thestig@ for linearized changes.
4 years, 1 month ago (2016-11-07 14:35:42 UTC) #12
Lei Zhang
The trybots are red. Please take a look. Also, I can't remember under what exact ...
4 years, 1 month ago (2016-11-08 10:53:02 UTC) #17
snake
On 2016/11/08 10:53:02, Lei Zhang (slow) wrote: > The trybots are red. Please take a ...
4 years, 1 month ago (2016-11-08 12:32:43 UTC) #18
snake
On 2016/11/08 10:53:02, Lei Zhang (slow) wrote: > The trybots are red. Please take a ...
4 years, 1 month ago (2016-11-08 15:18:46 UTC) #19
Lei Zhang
On 2016/11/08 15:18:46, snake wrote: > On 2016/11/08 10:53:02, Lei Zhang (slow) wrote: > > ...
4 years, 1 month ago (2016-11-08 22:36:31 UTC) #20
snake
Thank you for information about XFA specific. I have fixed tests. https://codereview.chromium.org/2483633002/diff/40001/core/fpdfapi/parser/cpdf_data_avail.cpp File core/fpdfapi/parser/cpdf_data_avail.cpp (left): ...
4 years, 1 month ago (2016-11-08 23:37:09 UTC) #25
Lei Zhang
On 2016/11/08 12:32:43, snake wrote: > On 2016/11/08 10:53:02, Lei Zhang (slow) wrote: > > ...
4 years, 1 month ago (2016-11-09 08:50:55 UTC) #30
Lei Zhang
https://codereview.chromium.org/2483633002/diff/40001/core/fpdfapi/parser/cpdf_data_avail.cpp File core/fpdfapi/parser/cpdf_data_avail.cpp (right): https://codereview.chromium.org/2483633002/diff/40001/core/fpdfapi/parser/cpdf_data_avail.cpp#newcode1352 core/fpdfapi/parser/cpdf_data_avail.cpp:1352: if (!m_pLinearized || !m_pLinearized->GetLastXRefOffset()) Should be safe to remove ...
4 years, 1 month ago (2016-11-09 08:51:12 UTC) #31
snake
https://codereview.chromium.org/2483633002/diff/40001/core/fpdfapi/parser/cpdf_data_avail.cpp File core/fpdfapi/parser/cpdf_data_avail.cpp (right): https://codereview.chromium.org/2483633002/diff/40001/core/fpdfapi/parser/cpdf_data_avail.cpp#newcode1352 core/fpdfapi/parser/cpdf_data_avail.cpp:1352: if (!m_pLinearized || !m_pLinearized->GetLastXRefOffset()) On 2016/11/09 08:51:11, Lei Zhang ...
4 years, 1 month ago (2016-11-09 12:41:49 UTC) #32
Lei Zhang
On 2016/11/09 08:50:55, Lei Zhang (slow) wrote: > On 2016/11/08 12:32:43, snake wrote: > > ...
4 years, 1 month ago (2016-11-09 21:53:29 UTC) #37
snake
On 2016/11/09 21:53:29, Lei Zhang (slow) wrote: > On 2016/11/09 08:50:55, Lei Zhang (slow) wrote: ...
4 years, 1 month ago (2016-11-09 23:05:45 UTC) #38
Lei Zhang
On 2016/11/09 23:05:45, snake wrote: > On 2016/11/09 21:53:29, Lei Zhang (slow) wrote: > > ...
4 years, 1 month ago (2016-11-09 23:10:20 UTC) #39
snake
On 2016/11/09 23:10:20, Lei Zhang (slow) wrote: > On 2016/11/09 23:05:45, snake wrote: > > ...
4 years, 1 month ago (2016-11-09 23:19:11 UTC) #40
Lei Zhang
On 2016/11/09 23:19:11, snake wrote: > Ww should refactore the AreObjectsAvailable to make it const, ...
4 years, 1 month ago (2016-11-09 23:30:00 UTC) #42
snake
On 2016/11/09 23:30:00, Lei Zhang (slow) wrote: > On 2016/11/09 23:19:11, snake wrote: > > ...
4 years, 1 month ago (2016-11-09 23:47:31 UTC) #43
Lei Zhang
LGTM, thanks.
4 years, 1 month ago (2016-11-09 23:52:27 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2483633002/80001
4 years, 1 month ago (2016-11-09 23:53:29 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: mac_xfa_rel on master.tryserver.client.pdfium (JOB_FAILED, https://build.chromium.org/p/tryserver.client.pdfium/builders/mac_xfa_rel/builds/44)
4 years, 1 month ago (2016-11-10 00:02:15 UTC) #48
snake
On 2016/11/10 00:02:15, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 1 month ago (2016-11-10 00:10:12 UTC) #49
Lei Zhang
On 2016/11/10 00:10:12, snake wrote: > On 2016/11/10 00:02:15, commit-bot: I haz the power wrote: ...
4 years, 1 month ago (2016-11-10 00:15:52 UTC) #50
snake
On 2016/11/10 00:15:52, Lei Zhang (slow) wrote: > On 2016/11/10 00:10:12, snake wrote: > > ...
4 years, 1 month ago (2016-11-10 00:20:50 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2483633002/120001
4 years, 1 month ago (2016-11-10 00:25:05 UTC) #54
Lei Zhang
On 2016/11/10 00:20:50, snake wrote: > On 2016/11/10 00:15:52, Lei Zhang (slow) wrote: > > ...
4 years, 1 month ago (2016-11-10 01:34:21 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: win on master.tryserver.client.pdfium (JOB_TIMED_OUT, no build URL) win_no_v8 on ...
4 years, 1 month ago (2016-11-10 02:25:44 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2483633002/120001
4 years, 1 month ago (2016-11-10 05:32:32 UTC) #59
commit-bot: I haz the power
4 years, 1 month ago (2016-11-10 05:32:50 UTC) #61
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://pdfium.googlesource.com/pdfium/+/61f8e9c5aeb0d8cb5477e0248b685214746b...

Powered by Google App Engine
This is Rietveld 408576698