Suppose I have a multi client broadcast server. One client sends
a string, every client receives it. The client read thread reads
the input from the client into a static byte array, makes a copy
and casts it to a string, and passes it to the host thread, which
relays it to all client write threads. This is done with message
passing. Is there a way it can be done without allocation? That
is, currently I use .idup on the static array.
- Avoiding allocation in broadcast server Casper Færgemand
- Re: Avoiding allocation in broadcast server Stanislav Blinov
- Re: Avoiding allocation in broadcast server Jakob Ovrum
- Re: Avoiding allocation in broadcast server Casper Færgemand
- Re: Avoiding allocation in broadcast server Kagamin
- Re: Avoiding allocation in broadcast server Casper Færgemand