Increasing Chrome's Performance

exocet_uk

New member
Aug 25, 2012
4
4
0
London
Hi All

I really like using Chrome on my S3 and I was bitterly disappointed with the performance I was getting when using it on my TF300T. In my quest to get this thing working as a viable alternative I turned my head towards the shocking internal SD IO performance and the browser2ram hack for the stock browser. I originally planned to fork browser2ram to create "chrome2ram" but instead decided on using DirectoryBind to put Chrome's cache on the ExternalSD card.

** Note: this method does require root **

To prove that this would actually give me a performance increase I used the DirectoryBind trick on Quadrant first and compared the I/O score before and after. Even with my lowly Class2 the figures spoke for themselves - 976 before and 2805 after... wow! Wish I had a faster SD card to hand to retest this with. The config for DirectoryBind was:
S: /Removable/MicroSD/QuadrantTemp/ (need to create this folder)
T: /data/data/com.aurorasoftworks.quadrant.ui.standard/​


So I've now applied this to Chrome and it definitely seems like things have improved - I can't say I've seen an ANR message since I started using this last night. If anyone wants to give this a try and see if they can notice any difference that would be appreciated :). DirectoryBind config for Chrome:
S: /Removeable/MicroSD/ChromeCache/ (need to create this folder)
T: /data/data/com.android.chrome/cache/Cache/​


I don't want to bore you with the step-by-step details of setting up DirectoryBind etc. but if there is the demand then I'll put a quick guide together - just make sure you change the settings to bind on boot.

Thanks for reading!
 

jgaf

Senior Member
Aug 14, 2011
1,229
389
0
Tampa
I want to try this, the problem I'm having is that when I go to set the directory in /data/ the folder appears empty in the app. Weird, I even tried typing it and it said something about incorrect directory. I do have root and can clearly see all directories through root explorer, any ideas? also which version of directorybind did you use?

Thanks in advance

Sent from my ASUS Transformer Pad TF300T using Tapatalk 2
 

exocet_uk

New member
Aug 25, 2012
4
4
0
London
I want to try this, the problem I'm having is that when I go to set the directory in /data/ the folder appears empty in the app. Weird, I even tried typing it and it said something about incorrect directory. I do have root and can clearly see all directories through root explorer, any ideas? also which version of directorybind did you use?

Thanks in advance

Sent from my ASUS Transformer Pad TF300T using Tapatalk 2
I'm using "DirectoryBind_0.2.0o.apk". I remember I did have that issue actually. To get around it I manually typed the path in the box and disabled path verification - the Directory Bind explorer doesn't seem to work well for folders which require root to view.

Hope that helps.
 

mcall_r

Senior Member
Mar 13, 2008
298
24
48
Glasgow
I also tried this and am getting the error that directorybind is unable to access the data directory. This is after granting root access with supersu and disabling path verification under directorybind settings...
 

Niksunen

Senior Member
Mar 14, 2006
178
85
0
I also tried this and am getting the error that directorybind is unable to access the data directory. This is after granting root access with supersu and disabling path verification under directorybind settings...
Open terminal and use command "busybox chmod -R 775 /data"
(without ")
 

exocet_uk

New member
Aug 25, 2012
4
4
0
London
Sounds interesting and definitely would be interested in a guide!
Seems a couple of people are running into the same issue as myself - the DirectoryBind tool is a little confusing in it's naming of the data/target folders.

  1. Download and install the Directory Bind apk from here http://forum.xda-developers.com/showthread.php?t=1410262. I'm using the version 'DirectoryBind_0.2.0o.apk'
  2. Shutdown Chrome and fire up DirectoryBind.
  3. "Menu -> Preferences". Turn on 'Bind on boot'. Turn on 'Bypass path verification'.
  4. Go back to the main screen and then "Menu -> Add new entry"
  5. Long press on the first box (data). Navigate to /Removable/microSD. Click 'New' in the bottom left and create a folder (e.g. ChromeCache). Then hit 'Select'
  6. The navigator doesn't work for app data so in the second box you'll need to type the path manually in here: "/data/data/com.android.chrome/cache/Cache/"
  7. I left the 'copy files' tick box unchecked as I wasn't too bothered about having my existing cache - but this one is up to you. Click Add.
  8. Finally click the grey disk icon the the left of the new entry and it should (hopefully) go green.

edit: make sure the button in the bottom right of the DirectoryBind main screen is also set to on.

After that you should be all ready to go!
 
Last edited:

bsaman

Senior Member
Jul 27, 2012
161
42
0
Thanks; those step by step instructions are dead on.

I have to say, though, that I still find the stock browser + browser2ram + IPAD UserAgent to be smoother and faster than Chrome + directorybind. What's been your experience since making that change?

Sent from my Transformer Pad TF300T using xda app-developers app
 

nooktablet

Senior Member
Mar 30, 2012
793
144
0
Thanks; those step by step instructions are dead on.

I have to say, though, that I still find the stock browser + browser2ram + IPAD UserAgent to be smoother and faster than Chrome + directorybind. What's been your experience since making that change?

Sent from my Transformer Pad TF300T using xda app-developers app
how do you change the stock browser's user agent to ipad? i'm looking for a way to do this but don't know how. mine is running stock rom locked bootloader, but i have root access.
thanks.
 

lazer9

Senior Member
Oct 17, 2007
2,506
856
0
54
Hermitage, PA
Seems a couple of people are running into the same issue as myself - the DirectoryBind tool is a little confusing in it's naming of the data/target folders.

  1. Download and install the Directory Bind apk from here http://forum.xda-developers.com/showthread.php?t=1410262. I'm using the version 'DirectoryBind_0.2.0o.apk'
  2. Shutdown Chrome and fire up DirectoryBind.
  3. "Menu -> Preferences". Turn on 'Bind on boot'. Turn on 'Bypass path verification'.
  4. Go back to the main screen and then "Menu -> Add new entry"
  5. Long press on the first box (data). Navigate to /Removable/microSD. Click 'New' in the bottom left and create a folder (e.g. ChromeCache). Then hit 'Select'
  6. The navigator doesn't work for app data so in the second box you'll need to type the path manually in here: "/data/data/com.android.chrome/cache/Cache/"
  7. I left the 'copy files' tick box unchecked as I wasn't too bothered about having my existing cache - but this one is up to you. Click Add.
    [*]Finally click the grey disk icon the the left of the new entry and it should (hopefully) go green.



edit: make sure the button in the bottom right of the DirectoryBind main screen is also set to on.

After that you should be all ready to go!
Mine didn't go green... :crying:



Nevermind, I think I got it. I had this part wrong: Navigate to /Removable/microSD
 
Last edited:

bsaman

Senior Member
Jul 27, 2012
161
42
0
how do you change the stock browser's user agent to ipad? i'm looking for a way to do this but don't know how. mine is running stock rom locked bootloader, but i have root access.
thanks.
I'm sorry, I should have mentioned I'm running CM10.

FYI: The reason I use the ipad UA is that espn.com attempts to load Flash for all Android browsers. The HTML5 page is much better, however, and using ipad as the UA fools it into loading that instead.
 

pullasuti

Member
Jul 11, 2010
17
1
0
Interesting...

Had to try it, because using Chrome is always a real pain. Unfortunately in my case, there really is no improvement. Also tried Quadrant, and on a class 10 card the i/o score went up from 1100 to around 1400. On ics and with overclocking it was around 4000, and Chrome was still sluggish.
 

ravn

Member
May 3, 2007
18
2
0
Aarhus
All this is very great.. But could it, as mentioned in the beginning, be made, so that Chrome could run off a ram drive?
The browser2ram is great, although it could be improved (by somebody how knows how?)..
 

UndisputedGuy

Senior Member
Dec 13, 2011
8,510
219
0
Does rooting the tablet void the warranty? It'd be nice to see performance increases but i don't want to void the warranty (and i don't really know how to do this tweak anyways)

Sent from my ASUS Transformer Pad TF300T using xda app-developers app
 

turdbogls

Senior Member
Oct 29, 2010
868
306
63
Orlando
Does rooting the tablet void the warranty? It'd be nice to see performance increases but i don't want to void the warranty (and i don't really know how to do this tweak anyways)

Sent from my ASUS Transformer Pad TF300T using xda app-developers app
Rooting does not....officially at least. you can always unroot the tablet at any time.
unlocking the bootloader does void the warranty though.

this is a really interesting read. i was pretty fed up with chrome. i rarely got the ANR message but it still locked up here and there even with Browser2RAM. i have since switched to the stock browser with no modifications done to it and dont have nearly the problems that i did with chrome.
 
  • Like
Reactions: UndisputedGuy

UndisputedGuy

Senior Member
Dec 13, 2011
8,510
219
0
I think i might try contacting asus to confirm. Thanks for your help.
Also, is chrome with this tweak better than stock browser with Browser2RAM?

Sent from my ASUS Transformer Pad TF300T using xda app-developers app
 
Last edited:

nooktablet

Senior Member
Mar 30, 2012
793
144
0
I'm sorry, I should have mentioned I'm running CM10.

FYI: The reason I use the ipad UA is that espn.com attempts to load Flash for all Android browsers. The HTML5 page is much better, however, and using ipad as the UA fools it into loading that instead.
Yeah I want to change user agent to ipad because of html5 too.
Now gotta use dolphin, can't change stock browser user agent

Sent from my ASUS Transformer Pad TF300T