Merge pull request 'made it like 10x faster' (#2) from dev-gentoowo into main

Reviewed-on: vanten-s/irc-e2e#2
This commit is contained in:
vanten-s 2023-10-08 13:01:23 +02:00
commit dedeacc003

View file

@ -34,7 +34,7 @@ fn bytes_to_privmsg_base64(message: Vec<u8>, reciever: &str) -> String {
.encode(message) .encode(message)
.chars() .chars()
.collect::<Vec<char>>() .collect::<Vec<char>>()
.chunks(50) .chunks(500)
.map(|c| c.iter().collect::<String>()) .map(|c| c.iter().collect::<String>())
{ {
command.push_str(&format!("PRIVMSG {reciever} :{line}\r\n")); command.push_str(&format!("PRIVMSG {reciever} :{line}\r\n"));