Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow to build circuits #7

Open
chrisballinger opened this issue Oct 2, 2014 · 1 comment
Open

Slow to build circuits #7

chrisballinger opened this issue Oct 2, 2014 · 1 comment

Comments

@chrisballinger
Copy link
Collaborator

We noticed that it was much slower to use CPAProxy than other methods. We suspect this is due to the torrc configuration for AvoidDiskWrites or some of the other settings. We also noticed that the data directory would change on every launch and should be configurable to allow for NSFileProtection flags.

@mtigas
Copy link
Contributor

mtigas commented Nov 13, 2014

I'm not sure AvoidDiskWrites actually does much in it’s current incarnation.

I think the slowness is primarily due to the latter reason — that the data directory changes (before e12c14a6 ) — that caused the slowdowns. Other implementations that were based off of what I did in OnionBrowser just used NSTemporaryDirectory() would simply just get the /<appdir>/tmp/ directory, which would remain across launches.

In all likelihood, Onion Browser probably should have kept these files in the actual app data directory, since these caches are important for the initial circuit-build performance (and probably don’t provide much in terms of forensic data in the event that the device filestructure is looked at later).

Anyway, I think this is "fixed" because of e12c14a — using a static directory will keep caches which otherwise require retrieving a lot of information from directories again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants