apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe JAILLET" <christophe.jail...@wanadoo.fr>
Subject Speed up 'apr_pstrdup'
Date Mon, 08 Aug 2011 22:19:06 GMT
Hi,

'apr_pstrdup' can be (if not already done by the compiler...) speed up a
little by inlining the call to 'apr_pmemdup'.

This avoid the overhead of calling a function and remove a redundant NULL
check.

A proposed, untested, patch is attached.

Best regards,
CJ


begin 666 diff_apr2.patch
M26YD97@Z('-T<FEN9W,O87!R7W-T<FEN9W,N8PH]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]"BTM+2!S=')I;F=S+V%P<E]S=')I;F=S+F,)*')E=FES:6]N(#$Q
M-34Q,C$I"BLK*R!S=')I;F=S+V%P<E]S=')I;F=S+F,)*'=O<FMI;F<@8V]P
M>2D*0$ @+3<U+#<@*S<U+#@@0$ *(" @(" @(" @<F5T=7)N($Y53$P["B @
M(" @?0H@(" @(&QE;B ]('-T<FQE;BAS*2 K(#$["BT@(" @<F5S(#T@87!R
M7W!M96UD=7 H82P@<RP@;&5N*3L**R @("!R97,@/2!A<')?<&%L;&]C*&$L
M(&QE;BD["BL@(" @;65M8W!Y*')E<RP@<RP@;&5N*3L*(" @("!R971U<FX@
*<F5S.PH@?0H@"@``
`
end



Mime
View raw message