In message <[email protected]>, Nils Goroll writes: >Hi Poul-Henning, > >could you provide a brief explanation on your decision to make all WS >allocations (void *) aligned? http://varnish-cache.org/ticket/665#comment:2 > >I had considered this solution, but I had thought aligning char * would just be >a waste of ws space. Or is there anything I don't know?
There are two reasons: 1. It's easier to not have a split-policy 2. Most memcpy() implementations works best with aligned start addresses. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [email protected] | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. _______________________________________________ varnish-dev mailing list [email protected] http://lists.varnish-cache.org/mailman/listinfo/varnish-dev
