Skip to content

removing extra fs calls#62

Merged
arturadib merged 1 commit intoshelljs:masterfrom
stephenmathieson:extra-fs-calls
May 10, 2013
Merged

removing extra fs calls#62
arturadib merged 1 commit intoshelljs:masterfrom
stephenmathieson:extra-fs-calls

Conversation

@stephenmathieson
Copy link
Copy Markdown

nothing major, but i've removed a bunch of extra fs.existsSync and fs.statSync calls, which should speed things up a bit. extra calls have been removed from:

  • cd
  • ls
  • cp
  • rm
  • mv

nothing major, but i've removed a bunch of extra `fs.existsSync` and `fs.statSync` calls, which should speed things up a bit.  extra calls have been removed from:

- `cd`
- `ls`
- `cp`
- `rm`
- `mv`
@arturadib
Copy link
Copy Markdown
Collaborator

Thanks, I'll merge this in. One of my concerns with caching the result of stat/exists is that the file status might change between caching and probing, but I inspected the patch and it seems like the caching is done not too far from probing so that should be OK. We'll see :)

arturadib added a commit that referenced this pull request May 10, 2013
@arturadib arturadib merged commit 3b35d6f into shelljs:master May 10, 2013
@stephenmathieson stephenmathieson deleted the extra-fs-calls branch May 10, 2013 15:46
@stephenmathieson
Copy link
Copy Markdown
Author

thanks! let me know if anything needs to be changed.

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

Successfully merging this pull request may close these issues.

2 participants