[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-misc
Subject:    Re: Varnish regular expression evaluated at compile time.
From:       Hugues Alary <hugues.alary () gmail ! com>
Date:       2012-10-11 21:45:03
Message-ID: CAN-YAk_yhk0cvOwbSSwpXiSkumRhFmnNzJC2jzJV9n1dVwp9LQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thanks for the clarification. I guess I'll have dig up my C knowledges now!

-Hugues

On Thu, Oct 11, 2012 at 3:46 AM, Tollef Fog Heen <
tfheen@varnish-software.com> wrote:

> ]] Hugues Alary
>
> > I don't know if it's gonna be the solution I'll adopt, but at this very
> > moment I only have that or coding a vmod. However I don't think that
> coding
> > a vmod is a solution as I would just implement something (regular
> > expression evaluation at run time) that phk says being too expensive.
>
> Yes, compiling it is expensive, but if you can afford it or not is
> obviously going to depend on the amount of CPU you have and your request
> rates.
>
> We currently don't support doing runtime compilation of regexes (as you
> discovered), so a vmod would be a way to go for now.
>
> --
> Tollef Fog Heen
> Technical lead, Varnish Software
> t: +47 21 98 92 64
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc@varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>



-- 
Hugues ALARY

[Attachment #5 (text/html)]

Thanks for the clarification. I guess I&#39;ll have dig up my C knowledges \
now!<div><br></div><div>-Hugues<br><br><div class="gmail_quote">On Thu, Oct 11, 2012 \
at 3:46 AM, Tollef Fog Heen <span dir="ltr">&lt;<a \
href="mailto:tfheen@varnish-software.com" \
target="_blank">tfheen@varnish-software.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">]] Hugues Alary<br> <div class="im"><br>
&gt; I don&#39;t know if it&#39;s gonna be the solution I&#39;ll adopt, but at this \
very<br> &gt; moment I only have that or coding a vmod. However I don&#39;t think \
that coding<br> &gt; a vmod is a solution as I would just implement something \
(regular<br> &gt; expression evaluation at run time) that phk says being too \
expensive.<br> <br>
</div>Yes, compiling it is expensive, but if you can afford it or not is<br>
obviously going to depend on the amount of CPU you have and your request<br>
rates.<br>
<br>
We currently don&#39;t support doing runtime compilation of regexes (as you<br>
discovered), so a vmod would be a way to go for now.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Tollef Fog Heen<br>
Technical lead, Varnish Software<br>
t: <a href="tel:%2B47%2021%2098%2092%2064" value="+4721989264">+47 21 98 92 \
64</a><br> <br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
 <a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" \
target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
 </font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Hugues \
ALARY<br> </div>



_______________________________________________
varnish-misc mailing list
varnish-misc@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic