Hi.
I want to write codes with this approach:
I asked my problem to chatGPT, and he recommended Arc<Mutex<Vec<u8>>>
instead of channel<Vec<u8>>
Is it right? or should I benchmark first? or.. better idea for this?
I have no idea which has more overhead, making a new vector per sending or runtime mutability checking.
Thanks in advance.
1 post - 1 participant