[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AE90C24D6B3A694183C094C60CF0A2F6D8AF49@saturn3.aculab.com>
Date: Tue, 17 Jan 2012 13:33:01 -0000
From: "David Laight" <David.Laight@...LAB.COM>
To: <abirvalg@...abit.com>, <netdev@...r.kernel.org>
Subject: RE: /proc/net/tcp6 inconsistent line length
> My application parses /proc/net/tcp6 at least 4 times per
> second, so the overhead of figuring out the length of each
> line and subtracting the offset is quite expensive.
I'd be surprised if you can detect the cost of calling
strchr(buf, '\n') on each line at the frequency.
It is probably far less than the other processing you
do on the line.
David
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists