Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Conversation

@alcortesm
Copy link
Contributor

As part of the new pack protocol implementation (package packp), this patch replaces the old pktline package with a new one, inspired on the standard golang scanner API and using []bytes instead of strings where ever possible.

There are some inefficiencies involving []byte to string translations that will disappear in the future when we migrate the whole git-upload-pack-things to the new packp support.

@smola smola changed the title Substitute old pktline encoder/decored with new pktline scanner Substitute old pktline encoder/decoder with new pktline scanner Oct 18, 2016
Copy link
Contributor

@mcuadros mcuadros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the pktline.NewFromStrings but in pro of release v4, I am ok with it.

@mcuadros mcuadros force-pushed the master branch 2 times, most recently from ec55174 to f544bb5 Compare October 18, 2016 09:41
@mcuadros mcuadros merged commit d9e92ec into src-d:master Oct 18, 2016
@alcortesm alcortesm deleted the add-pktline-scanner branch October 18, 2016 20:52
mcuadros pushed a commit that referenced this pull request Jan 31, 2017
* replace old pktline package with new pktline scanner

* remove error checks on pktline.NewFromString

* fix deppend bug

* reduce memory garbage when pktline.NewFromStrings

* improve int to hex conversion to help gc

* make intToHex func private

* clean function names
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants