Skip to content

Add b64d - #2

Merged
MindPatch merged 1 commit into
MindPatch:masterfrom
VixieTSQ:master
Jul 3, 2022
Merged

Add b64d#2
MindPatch merged 1 commit into
MindPatch:masterfrom
VixieTSQ:master

Conversation

@VixieTSQ

@VixieTSQ VixieTSQ commented Jul 3, 2022

Copy link
Copy Markdown

No description provided.

Comment thread b64d/Cargo.toml

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

[profile.release]

Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread b64d/src/main.rs
&mut file,
Config::new(charset, true)
);
file.read_to_string(&mut decoded)?; // TODO: Doesn't like newlines

@VixieTSQ VixieTSQ Jul 3, 2022

Copy link
Copy Markdown
Author

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
Copy Markdown
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
Copy Markdown
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