News for hackers. Stuff that matters.
Re:Asmttpd – Web server for Linux written in amd64 assembly by joosters on Tuesday May 19, 2015 @05:56PM (#9573431)
Handling strings with (ptr, length) also means that some string copies can be entirely avoided. Text can be chopped, shared and extended by adjusting the two parameters, while the underlying storage remains untouched.

e.g. a really basic example for a web server would be splitting up a URL into a path and query string: both strings can use the underlying URL without any copying.

There are no comments on this comment yet.