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

Add b64d #2

Merged
merged 1 commit into from
Jul 3, 2022
Merged

Add b64d #2

merged 1 commit into from
Jul 3, 2022

Conversation

VixieTSQ
Copy link

@VixieTSQ VixieTSQ commented Jul 3, 2022

No description provided.


# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[profile.release]
Copy link
Author

Choose a reason for hiding this comment

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

Is this all really necessary? Especially abort on panic... really? space can't be that big of an issue

Copy link
Owner

Choose a reason for hiding this comment

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

agree, but we don't want a big size difference between go/Rust version
Go : 1.9M
Rust: 7.6M

we can disable remove abort line

&mut file,
Config::new(charset, true)
);
file.read_to_string(&mut decoded)?; // TODO: Doesn't like newlines
Copy link
Author

@VixieTSQ VixieTSQ Jul 3, 2022

Choose a reason for hiding this comment

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

There is no super easy way to fix this because I am using the decoderreader thingy. I could just pull in the file whole for preprocessing before decoding it but that's quite sad.

If I really wanted to be stingy with memory, I could print out a byte at a time from the decoderreader.

@MindPatch MindPatch mentioned this pull request Jul 3, 2022
@MindPatch
Copy link
Owner

hey @VixieTSQ, thanks for your changes
for the decode new line bug we can discuss about it later and I've opened an issue for it here #3

best regards

@MindPatch MindPatch merged commit 2849da5 into MindPatch:master Jul 3, 2022
@MindPatch
Copy link
Owner

hey @VixieTSQ , don't forget to add your info (email, username) to your git config in the next time

thanks

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