<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 31.07.2012 10:44, Poul-Henning Kamp
wrote:<br>
</div>
<blockquote cite="mid:84952.1343724296@critter.freebsd.dk"
type="cite">
<pre wrap="">In message <a class="moz-txt-link-rfc2396E" href="mailto:501792EA.5060901@unister-gmbh.de"><501792EA.5060901@unister-gmbh.de></a>, Gordon Schmidt writes:
</pre>
<blockquote type="cite">
<pre wrap="">By now I have written a small python script to minify the vcl config by
removing comments and empty lines and also resolving includes.
So i'm using just one VCL-File with 33316 bytes instead of a
configuration of 110 vcl files with 41635 bytes in sum.
</pre>
</blockquote>
<pre wrap="">
It sounds really strange that this should have the performance
effect you claim...
</pre>
</blockquote>
I didn't get the 8%-10% by minifying - the performance gain with
minified vcls is lower.<br>
Just for testing, I removed the part in the vcc_compile.c
responsable for adding scrbody to the compiled object to get the
full performance improvement.<br>
<br>
My changes for testing were:<br>
index 66d89f5..e51833a 100644<br>
--- a/lib/libvcl/vcc_compile.c<br>
+++ b/lib/libvcl/vcc_compile.c<br>
@@ -343,16 +343,7 @@ EmitStruct(const struct vcc *tl)<br>
}<br>
Fc(tl, 0, "};\n");<br>
<br>
- Fc(tl, 0, "\nconst char *srcbody[%u] = {\n",
tl->nsources);<br>
- VTAILQ_FOREACH(sp, &tl->sources, list) {<br>
- Fc(tl, 0, " /* ");<br>
- EncString(tl->fc, sp->name, NULL, 0);<br>
- Fc(tl, 0, "*/\n");<br>
- Fc(tl, 0, "\t");<br>
- EncString(tl->fc, sp->b, sp->e, 1);<br>
- Fc(tl, 0, ",\n");<br>
- }<br>
- Fc(tl, 0, "};\n");<br>
+ Fc(tl, 0, "\nconst char *srcbody[%u] = NULL;\n");<br>
<br>
Fc(tl, 0, "\nstatic struct director\t*directors[%d];\n",<br>
tl->ndirector);<br>
<br>
<br>
Regards<br>
Gordon<br>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<title>E-Mail-Signatur</title>
<style type="text/css">
body {background:#FFF; font:11px/15px Arial, Helvetica, sans-serif;}
p {margin-bottom:10px;}
a {text-decoration:none; color:#00c;}
</style>
<p> <b>Gordon Schmidt</b><br>
Softwareentwickler - QA </p>
<p> Unister GmbH<br>
Barfußgässchen 11 | 04109 Leipzig </p>
<p> Telefon: +49 (0)341 65050 - 25757<br>
<a href="mailto:gordon.schmidt@unister.de">gordon.schmidt@unister.de</a><br>
<a href="http://www.unister.de">www.unister.de</a> </p>
<p> Vertretungsberechtigter Geschäftsführer: Thomas Wagner<br>
Amtsgericht Leipzig, HRB: 19056 </p>
</div>
</body>
</html>