Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] NIO inefficiency?


On Friday, August 9, 2013 at 2:53 PM, Viktor Szathmary wrote:

On Friday, August 9, 2013 at 2:26 PM, Simone Bordet wrote:
Sure, it is writing the bytes (note also that we're talking the 2% of
your CPU time here - any improvement here will probably have little
effect on the total time).
Agreed, this seems quite minor now – when I initially started down on this path it seemed there might be up to 5% potential gain… Nonetheless, might as well squeeze out that extra percent or two while we are at it – I like how Jetty always trims the extra fat ;)

And, by the way, since the profilers are quite inaccurate and don't account for external factors, it's quite possible this small improvement might have an observable impact on latency. For example a context switch might be avoided, which has a high overhead, especially in virtualized environments. (This is a general observation, not claiming that this would necessarily be the case here :)

Regards,
  Viktor


Back to the top