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

Issue 1566433003: Replace IconTree class with std::list. (Closed)

Created:
4 years, 11 months ago by Tom Sepez
Modified:
4 years, 11 months ago
Reviewers:
Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Replace IconTree class with std::list. Remove some O(n^2) behaviour when iterating across the thing. R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/cc3727f88e48f4d26a589131dc03adca4eaac301

Patch Set 1 #

Patch Set 2 : Stray file #

Total comments: 7

Patch Set 3 : Fix tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -99 lines) Patch
M fpdfsdk/src/javascript/Document.h View 1 2 3 chunks +7 lines, -22 lines 0 comments Download
M fpdfsdk/src/javascript/Document.cpp View 1 2 6 chunks +12 lines, -77 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Tom Sepez
Lei, containers of unique_ptrs are now allowed, and I have a need to use them.
4 years, 11 months ago (2016-01-05 22:06:37 UTC) #3
Lei Zhang
lgtm https://codereview.chromium.org/1566433003/diff/20001/fpdfsdk/src/javascript/Document.cpp File fpdfsdk/src/javascript/Document.cpp (right): https://codereview.chromium.org/1566433003/diff/20001/fpdfsdk/src/javascript/Document.cpp#newcode158 fpdfsdk/src/javascript/Document.cpp:158: delete m_DelayData.GetAt(i); Looks like another good candidate to ...
4 years, 11 months ago (2016-01-05 22:35:31 UTC) #4
Tom Sepez
Note that I had to restore some empty() checks to keep the JS tests consistent. ...
4 years, 11 months ago (2016-01-05 23:10:09 UTC) #5
Lei Zhang
On 2016/01/05 23:10:09, Tom Sepez wrote: > Note that I had to restore some empty() ...
4 years, 11 months ago (2016-01-05 23:22:12 UTC) #6
Tom Sepez
4 years, 11 months ago (2016-01-06 00:20:08 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
cc3727f88e48f4d26a589131dc03adca4eaac301 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698