[core] mark some cold routines noinline
mark some cold routines noinline for better asm register usage and to slightly reduce code size when compiled optimized.
This commit is contained in:
parent
854503631d
commit
7dddbc9960
|
@ -507,6 +507,7 @@ static int http_request_parse_single_header(request_st * const restrict r, const
|
|||
}
|
||||
|
||||
__attribute_cold__
|
||||
__attribute_noinline__
|
||||
static int http_request_parse_proto_loose(request_st * const restrict r, const char * const restrict ptr, const size_t len, const unsigned int http_parseopts) {
|
||||
const char * proto = memchr(ptr, ' ', len);
|
||||
if (NULL == proto)
|
||||
|
@ -537,6 +538,7 @@ static int http_request_parse_proto_loose(request_st * const restrict r, const c
|
|||
}
|
||||
|
||||
__attribute_cold__
|
||||
__attribute_noinline__
|
||||
static const char * http_request_parse_reqline_uri(request_st * const restrict r, const char * const restrict uri, const size_t len, const unsigned int http_parseopts) {
|
||||
const char *nuri;
|
||||
if ((len > 7 && buffer_eq_icase_ssn(uri, "http://", 7)
|
||||
|
|
Loading…
Reference in New Issue