mini-chat/cmd
raul a21199a6e0 Optimize client RAM memory usage
The receiveMessage() function would regularly keep casting strings based
on a 2048 byte array, this didn't seemingly pose a problem until I
noticed the RAM usage go through the roof when the client had to be
populated with the chat history of a lengthy chat log by the server. To
fix this I am now creating a second array using the number of bytes
being returned by the Read() method and copying the 2048 byte array's
contents into it, setting the former array to nil afterwards.
2024-05-14 15:31:55 +02:00
..
client.go Implement choosing TLS/plaintext for client 2024-05-14 09:26:45 +02:00
clientFunc.go Optimize client RAM memory usage 2024-05-14 15:31:55 +02:00
gen-cert.sh Add gen-cert.sh 2024-05-14 09:06:24 +02:00
root.go Clean up Cobra files 2024-05-10 07:58:12 +02:00
server.go Minor formatting changes 2024-05-14 09:27:23 +02:00
serverFunc.go Add date formatting to messages 2024-05-14 15:30:16 +02:00