Optimizing HTTP header manipulation, part 2

Tagged:  •    •  

In the previous post I told you how a couple of primitives (which means, modifications to the base classes) helped speeding up HTTP processing in Swazoo by a factor of 6.

Today I'll remove another part of it by modifying Swazoo itself. To remove Seaside, I used the simple "hello world" site that Swazoo serves if you start it with

gst-load --start=swazoodemo Swazoo

A killer feature: copy-on-write #copyFrom:to:

Tagged:  •    •  

A killer feature that I would like to add is copy-on-write string handling. For a good example, see this post on ruby-talk (aka comp.lang.ruby):

When you take a substring in Ruby, it doesn't copy the string data. Instead, it just constructs a new string object (just a few words of memory) that references into the original string. Only when either string is modified does the string content get copied.
Syndicate content

User login