On 2017-04-03 19:01, Alexey Kulentsov wrote:

It is good idea only if compiler can prevent leak of pointers to this storage out of request scope. How do you want to achieve this?

That would not be possible with the current compiler, as far as I know.

Many requests can be processed by the same thread at the same time, so thread-local is not enough, I think.

Not really at the same time since a thread can only do one thing at the
same time. Although multiple requests can be active on the same thread.
Which will most likely result in a fragmented buffer, which will most
likely not work.

/Jacob Carlborg