These should be covered during the link time optimisations.
Look here for gcc: http://gcc.gnu.org/wiki/LinkTimeOptimization
And here for Visual Studio :
http://msdn.microsoft.com/en-us/library/xbf3tbeh.aspx
Cheers
Pankaj
On 14 February 2014 23:24, atarob wrote:
> > On Friday, February 14, 20
> On Friday, February 14, 2014 04:59:26 PM atarob wrote:
> > Looking through the codebase, I see a lot of very short helper like
> > functions that are defined in .c files with prototypes in .h files.
> This
> > means that the compiler cannot inline them outside of that .c file.
> > Am I
> > wrong?
I suppose they will be inlined at -O2 level:
http://linux.die.net/man/1/gcc
-finline-small-functions
Integrate functions into their callers when their body is smaller than expected
function call code (so overall size of program gets smaller). The compiler
heuristically decides which functions ar
On Friday 14 February 2014 17:11:37 jove4015 wrote:
[..]
> Is there any way to set up the proxy to the upstream so that it proxies HEAD
> requests as HEAD requests, and GET requests as normal, and still caches
> responses as well? Ideally it would cache all GET responses, check against
> the cache
I'm trying to figure out how to get Nginx to proxy cache HEAD requests as
HEAD requests and I can't find any info on google.
Basically, I have an upstream server in another datacenter, far away, that I
am proxying requests to. I'm caching those requests, so the next time the
request comes in, we
Looking through the codebase, I see a lot of very short helper like
functions that are defined in .c files with prototypes in .h files. This
means that the compiler cannot inline them outside of that .c file. Am I
wrong? How is that not a performance hit?
Ata.
Posted at Nginx Forum:
http://foru
Hello,
I was wondering if proxy_pass has any ability to retry ECONNREFUSED, or a
connection timeout, or similar?
It looks like proxy_next_upstream is fairly close to what I want, though I
would rather not configure a second server; I just want the initial request
to be more robust.
Similarly the
Creating a module, I want to read in from config desired http header fields.
Then, during config still, I want to get the struct offset for the fields
that have dedicated pointers in the header_in struct. It seems that when I
access headers_in_hash from the main config, it is uninitialized. I can
Hi,
I have configured Nginx as a reverse-proxy to pass http requests to backend
servers.
When i try to see the domains thay all show me the default page of Nginx.
The config file is in /etc/nginx/conf.d
Theese are the entries that i have for one of the domains
server {
listen 80;
server_nam
Hi.
My system: uname -a:
SunOS web-srv 5.11 11.1 sun4v sparc sun4v
My configure line:
/configure --prefix=/opt/nginx --group=webservd --user=webservd
--with-cc-opt='-I ../pcre-8.34' --with-cpu-opt=sparc64
--with-pcre=../pcre-8.34 --with-zlib=../zlib-1.2.8 --with-http_sub_module
--with-http_gzip_sta
Many thanks I will dig into it :)
See you
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,247521,247554#msg-247554
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Hello!
On Thu, Feb 13, 2014 at 06:43:08PM +, Brian Hill wrote:
> Hello, we are using NGINX to serve a combination of local and
> proxied content coming from both an Apache server (mostly PHP
> content) and IIS 7.5 (a handful of third party .Net
> applications). The proxy is working properl
Hello!
On Thu, Feb 13, 2014 at 05:34:44PM -0500, eN_Joy wrote:
> Hello all!
> I have configured a location that acts list a transparent proxying cache:
>
>
>
> location /get
> {
> set $hostx "";
> set $addrs "";
> if ( $uri ~ "^/get/htt
Hello!
On Thu, Feb 13, 2014 at 03:42:22PM -0200, Guilherme wrote:
> Anton,
>
> I already had the same issue logging to NFS, but I'm curious about why
> nginx hang in some nfs failures. Log phase is the last, if there is no post
> action, so why nginx stop responding in some NFS failures?
Becaus
On Feb 13, 2014, at 23:23 , offthedeepnd wrote:
> Hi All,
>
> I'm running nginx 1.4.1 on OpenBSD 5.4 stable along with php and php-fpm
> version 5.3.27 and mysql 5.1.70 on two systems. I'm trying to install
> piwigo-2.6.1 and running into an issue on of of the systems as indicated by
> the subje
OK, so I modified nginx and php5-fpm to talk on port 9000 and used tcpdump
to see the traffic. It looks like it worked as packets arrived at 1 second
intervals (the sleep(1) in my code).
However in browser it was still the same.
After more testing, it turns out there's something in my computer
co
upstream download {
server 127.0.0.1:8001 weight=1;
}
server {
listen 80;
server_name 210.209.116.176 *.newlife-sh.com;
access_log logs/download.log main;
location /{
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
# proxy_set_h
I use nginx proxy tomcat, but there have been many 400 error, about 10%.
But do not use nginx, tomcat can normally handle this part of the request.
This is my nginx configuration :
user nobody;
worker_processes 1;
error_log logs/error.log;
pid l
18 matches
Mail list logo