Merge lp:~victored/noise/icon-view-optimizations-1 into lp:~elementary-apps/noise/trunk
Status: | Work in progress |
---|---|
Proposed branch: | lp:~victored/noise/icon-view-optimizations-1 |
Merge into: | lp:~elementary-apps/noise/trunk |
Diff against target: |
69 lines (+25/-11) 1 file modified
src/Widgets/FastView/TileView/TileView.vala (+25/-11) |
To merge this branch: | bzr merge lp:~victored/noise/icon-view-optimizations-1 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PerfectCarl (community) | Needs Information | ||
AnSukkal (community) | testing | Approve | |
elementary Apps team | Pending | ||
Review via email: mp+225761@code.launchpad.net |
Commit message
Optimize Icon View: Set a fixed size for TileRenderer to avoid unnecessary calls to Gtk.CellRendere
Description of the change
I'm receiving many complaints about the current grid view being slow when resizing.
While I would always prefer a slow-to-resize view (we don't resize windows that often) over a fast grid that is permanently misaligned and looks ugly, I have to admit we can still try to do something about it.
This is the first optimization branch. TileRenderer.vala is fast at drawing, and no optimizations are really needed there. The size calculation methods (TileRenderer.
To avoid this, this code calls Gtk.CellRendere
TODO on next branch: As pointed out in the code, the current two operations slowing down resizing are Gtk.IconView.
Unmerged revisions
- 1634. By Victor Martinez
-
Optimize Icon View: Set a fixed size for TileRenderer to avoid unnecessary calls to Gtk.CellRendere
r.get_preferred _width and Gtk.CellRendere r.get_preferred _height_ for_width.
What is the difference from this branch and https:/ /code.launchpad .net/~victored/ noise/grid- view-optimizati ons-2 ?
Could someone merge those two branches and test whether the result actually make any real difference?