Currently, only one Vector<u8> is used as a buffer to manage the stdout from the Wasm module.
This becomes a bottleneck since Apache can run several workers at a time, but if they receive requests to the Wasm endpoint, then each worker will have to wait until getting mutual exclusion over the buffer.
Currently, only one
Vector<u8>is used as a buffer to manage thestdoutfrom the Wasm module.This becomes a bottleneck since Apache can run several workers at a time, but if they receive requests to the Wasm endpoint, then each worker will have to wait until getting mutual exclusion over the buffer.