Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Features#3

Open
jzebedee wants to merge 6 commits intoFaithlife:masterfrom
jzebedee:features
Open

Features#3
jzebedee wants to merge 6 commits intoFaithlife:masterfrom
jzebedee:features

Conversation

@jzebedee
Copy link
Copy Markdown
Contributor

Added Yuta Mori's induced sort
Added the option to select a SuffixSort algorithm
Replaced WriteInt64 with a faster method

jzebedee added 6 commits July 21, 2014 20:19
Added the option to select a SuffixSort algorithm
Replaced WriteInt64 with a faster method
Fixed an erroneous throw if a patch completes without any extra data
Fixed db/eb being allocated with an extra byte
Moved constant fields together
Added the option to select a SuffixSort algorithm
Comment thread src/bsdiff/SAIS.cs
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Types that don't own native resources shouldn't have finalizers. (Writing a finalizer for any type shouldn't be necessary; see Never write a finalizer again (well, almost never).)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I see now that this was probably taken from https://sites.google.com/site/yuta256/sais. Still, it would be a good idea to clean it up and bring it in conformance with proper C# style.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, as I said in my pull request and commit comments, this is Yuta Mori's SAIS implementation, verbatim.

I have cleaned it up quite a bit in my ttwinstaller repo, which you're welcome to snag if you plan on keeping SAIS.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, I'll take a look at that.

@lifigo163
Copy link
Copy Markdown

it have problem in mac system. after patch, it is different old file and new file.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants