Squid is normally built with -O2 unless you manually override the
compiler flags.
For Squid-3 -O2 gives a quite noticeable perforamnce benefit compared to
-O0, largely due to the inlining of inlined methods..
On mån, 2008-07-07 at 17:27 +0530, Paras Fadte wrote:
> Hi,
>
> Does compiling C/C++ code (lile apache ,squid ) with gcc optimization
> option "-O2" gives better performance . I think all the GNU packages
> have -O2 option enabled by default. But I was curious to know if it
> indeed increases the performance over a code not compiled with "-O2"
> option ?
>
> Sorry for a generic question.
>
> Thank you.
>
> -Paras
>
>
> On Thu, Jun 19, 2008 at 1:17 AM, Henrik Nordstrom
> <henrik_at_henriknordstrom.net> wrote:
> > Yes. See FAQ.
> >
> > On ons, 2008-06-18 at 23:05 +0530, Paras Fadte wrote:
> >> Hi ,
> >>
> >> Is it possible to specify multiple origin servers in squid and also if
> >> it is possible is it possible to do it for each virtual host ?
> >>
> >> example:
> >>
> >> vhost1 will have origin server v1.example.com
> >> vhos2 will have origin server v2.example.com
> >>
> >> and so on ....
> >>
> >> Thank you.
> >>
> >> -Paras
> >>
> >>
> >> On Fri, May 2, 2008 at 9:58 PM, Henrik Nordstrom
> >> <henrik_at_henriknordstrom.net> wrote:
> >> > On ons, 2008-04-30 at 23:51 +1200, Amos Jeffries wrote:
> >> >
> >> >> size_t is named to describe its use. It's unsigned to record the length
> >> >> of things.
> >> >> IIRC there is a different contextual meaning in squid. Hopefully one of
> >> >> the others can tell us both what.
> >> >
> >> > It's also 64-bits on 64-bit platforms, where int is 32-bits and can't
> >> > hold as large number as one can allocate consecutive memory regions...
> >> >
> >> > But as you say, the biggest factor is semantics. size_t is size of some
> >> > memory region (physical or virtual).
> >> >
> >> > ssize_t is similar, but only used for return results where -1 may be
> >> > returned... (signed)
> >> >
> >> > off_t is their cousin, but for positions/ranges in files instead of
> >> > memory regions.
> >> >
> >> > In squid-2 we also have squid_off_t which is for object
> >> > positions/ranges. In Squid-3 int64_t is used for this purpose.
> >> >
> >> > Regards
> >> > Henrik
> >> >
> >> >
> >
This archive was generated by hypermail 2.2.0 : Mon Jul 07 2008 - 12:00:05 MDT