1. 03 Mar, 2012 2 commits
    • zelidrag@chromium.org's avatar
      Revert 124674 - Improving file manager js/css performance · 6b1af1fe
      zelidrag@chromium.org authored
      This change attempts to reduce the load time of the file manager (especially on slow Alex devices) by trimming unnecessary work done in javascript and reducing layouts.
      
      - Enable batch updating in cr.ui.Table (exactly how it's done in cr.ui.List).
      - Add more 'on complete' callbacks to some of the FileManager infrastructure so we know when to stop batch UI updates.
      - Use batch updates for some operations which profiling indicates causes non-trivial amounts of duplicated work.  In particular, in my testing this reduces the number of (sometimes expensive) List.redraw() calls on startup for the table from 6 down to 1, and for the roots list from 4 down to 2.
      
      Measurements on alex are quite variable, but these changes result in about 70ms savings on startup (or about 17% of the time spent under 'v8.callChromeHiddenMethod' - i.e. JS callbacks through the extension system, which itself is about 1/3rd of total load time).
      
      The majority of file manager load time is spent inside of v8, and there are many more opportunities like these to trim various code paths.  But it seems clear that major improvements are going to require more drastic approaches (eg. I'm experimenting with painting the initial UI after parsing/running a small fraction of the JS).
      
      BUG=105181
      TEST=
      
      
      Review URL: http://codereview.chromium.org/9379023
      
      TBR=rbyers@chromium.org
      Review URL: https://chromiumcodereview.appspot.com/9580035
      
      git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124786 0039d316-1c4b-4281-b951-d872f2087c98
      6b1af1fe
    • szym@chromium.org's avatar
      [net] Ensure aborted HostResolverImpl::Jobs release slots in the dispatcher. · 57a48d36
      szym@chromium.org authored
      Also re-introduces a missing life check in case a request callback deletes the HostResolver.
      
      R=eroman@chromium.org,cbentzel@chromium.org
      BUG=115399
      TEST=./net_unittest --gtest_filter=HostResolverImplTest.CanceledRequestsReleaseJobSlots
      
      
      Review URL: http://codereview.chromium.org/9572018
      
      git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124783 0039d316-1c4b-4281-b951-d872f2087c98
      57a48d36
  2. 02 Mar, 2012 38 commits