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

Better diff-ing library #15

Closed
odeke-em opened this issue Dec 31, 2014 · 1 comment
Closed

Better diff-ing library #15

odeke-em opened this issue Dec 31, 2014 · 1 comment
Labels

Comments

@odeke-em
Copy link
Owner

The current diff-ing library trips out at about > 5MB or so with a panic due to a slice out of bounds error.

@odeke-em odeke-em added the bug label Dec 31, 2014
@odeke-em
Copy link
Owner Author

odeke-em commented Jan 1, 2015

Addressed by: f9bf49e
Using the host system's diff util because doing it in go would require:

  • Downloading the remote file (n bytes)
  • Loading the local file into memory (m bytes)
  • Loading the remote file into memory (p bytes)
  • Diffing the content in memory (m + p + K bytes)

This is straineous on the system.

I'd rather:

  • Download the remote file (n bytes)
  • Issue a syscall to perform the diff.

@odeke-em odeke-em closed this as completed Jan 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant