Skip to content

Conversation

Integral-Tech
Copy link
Contributor

@Integral-Tech Integral-Tech commented Dec 2, 2024

  • format! macro introduces overhead of creating a new String object during runtime. On the contrary, concat! macro constructs &str during compilation, which is more efficient.

Copy link
Collaborator

@PsypherPunk PsypherPunk left a comment

Choose a reason for hiding this comment

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

LGTM. I think this gives a clearer representation of what the output's supposed to look like in the code.

Output from running locally:

❯ ./target/debug/rustscan --addresses 127.0.0.1 --ports 443
.----. .-. .-. .----..---.  .----. .---.   .--.  .-. .-.
| {}  }| { } |{ {__ {_   _}{ {__  /  ___} / {} \ |  `| |
| .-. \| {_} |.-._} } | |  .-._} }\     }/  /\  \| |\  |
`-' `-'`-----'`----'  `-'  `----'  `---' `-'  `-'`-' `-'
The Modern Day Port Scanner.

@PsypherPunk PsypherPunk merged commit 6a25fb1 into bee-san:master Dec 8, 2024
4 checks passed
@Integral-Tech Integral-Tech deleted the replace-format branch December 8, 2024 14:41
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