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

Features #3

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Features #3

wants to merge 6 commits into from

Conversation

jzebedee
Copy link
Contributor

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

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
m_pos = pos;
m_array = array;
}
~ByteArray()
Copy link
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
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
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
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

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

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.

3 participants