On 4/23/2015 11:55 AM, Ed W wrote:
> Hi Tom
> 
> Would you be amenable to optimising detect_configuration for the special 
> case of calling "enable iface_x"?
> 

...
> My suggestion on practical ways to implement this would be for 
> 'detect_config()' to take an optional interface parameter. Then each of 
> the stanzas can be wrapped in a conditional and only run if either the 
> param is empty or set to detect that specific interface.
> 
> My simple benchmarks suggest that slowest function for me is 
> 'interface_is_usable', consuming about 1s. Then 'detect_gateway' which 
> consumes about 0.7s, the remainder is 
> 'find_first_interface_address_if_any'. Note these benchmarks and 
> observations run against shorewall 4.6.6.1.
> 

I'll take a look at this after I see what I can do about Laurens's bug.

-Tom
-- 
Tom
Tom Eastep
http://www.shorewall.net


Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to