Closed
Bug 727309
Opened 14 years ago
Closed 14 years ago
LocalBrowserDB needlessly computes URI + profile
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 13
People
(Reporter: rnewman, Assigned: rnewman)
References
Details
Attachments
(1 file, 1 obsolete file)
|
17.74 KB,
patch
|
lucasr
:
review+
|
Details | Diff | Splinter Review |
The profile is private, and only set in the constructor.
Every call to appendProfile can turn into a member access. This will save a pile of garbage and a method call in almost every DB access.
| Assignee | ||
Comment 1•14 years ago
|
||
This hasn't finished building yet, but otherwise shows my intent :)
Attachment #597257 -
Flags: feedback?(lucasr.at.mozilla)
Comment 2•14 years ago
|
||
Comment on attachment 597257 [details] [diff] [review]
WIP. v1
Review of attachment 597257 [details] [diff] [review]:
-----------------------------------------------------------------
Makes sense.
::: mobile/android/base/db/LocalBrowserDB.java
@@ +79,5 @@
>
> private final String mProfile;
> private long mMobileFolderId;
>
> + private final Uri bookmarksUriWithProfile;
Prefix all those members with 'm' for consistency.
Attachment #597257 -
Flags: feedback?(lucasr.at.mozilla) → feedback+
| Assignee | ||
Comment 3•14 years ago
|
||
Rebased on top of current inbound. Nit addressed. One more method (introduced in the last day!) eliminated :)
Attachment #597257 -
Attachment is obsolete: true
Attachment #597451 -
Flags: review?(lucasr.at.mozilla)
Comment 4•14 years ago
|
||
Comment on attachment 597451 [details] [diff] [review]
Proposed patch. v1
Review of attachment 597451 [details] [diff] [review]:
-----------------------------------------------------------------
Good.
::: mobile/android/base/db/LocalBrowserDB.java
@@ +92,5 @@
> +
> + mBookmarksUriWithProfile = appendProfile(Bookmarks.CONTENT_URI);
> + mParentsUriWithProfile = appendProfile(Bookmarks.PARENTS_CONTENT_URI);
> + mHistoryUriWithProfile = appendProfile(History.CONTENT_URI);
> + mImagesUriWithProfile = appendProfile(Images.CONTENT_URI);
nit: we don't align assignments like this in Fennec :-) No alignment needed here.
Attachment #597451 -
Flags: review?(lucasr.at.mozilla) → review+
| Assignee | ||
Comment 5•14 years ago
|
||
Whiteboard: [inbound]
Comment 6•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
Target Milestone: --- → Firefox 13
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•