> Why not:
>
>   #if defined(DEBUG_ENABLE)
>   #   define LOGGING_MAX (~0)
>   #else
>   #   define LOGGING_MAX 0xFF
>   #endif
>
> or something like that?

This is deliberately undocumented and somewhat difficult to enable,
since I'm worried that a distributor will enable it by default in their
binary package.  (You know, experience shows that not all distributors
are intelligent.)

You see, LOGGING_MAX is the mechanism that causes the logging instructions
that are not enabled to be compiled out -- in that way, the values that
are printed are not even evaluated.  Setting LOGGING_MAX to 0xFF causes
all of this code to be included, and Polipo's performance to be reduced.

> or:
>
>   #define D_CLIENT_REQ 0x80
>
> instead of 0x800?

Oh, that's another issue -- I don't want to make it easy for stupid
admins to spy on their users.

                                        Juliusz

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users

Reply via email to