Date: Tue, 3 Jun 2014 12:59:41 +0400 From: Gleb Smirnoff <glebius@FreeBSD.org> To: Adrian Chadd <adrian@freebsd.org> Cc: Marcel Moolenaar <marcel@freebsd.org>, Ian Lepore <ian@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, Marcel Moolenaar <marcel@xcllnt.net>, "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org> Subject: Re: svn commit: r266974 - in head/sys: dev/dc dev/fxp dev/mii dev/netmap kern net Message-ID: <20140603085941.GW50679@FreeBSD.org> In-Reply-To: <CAJ-VmomJyYh2XDBO4JRghRzRzL9yRVZScGDyG44TNytSjXBYFg@mail.gmail.com> References: <201406021754.s52Hsd1B039620@svn.freebsd.org> <CAJ-VmonRqXrzrqQys_9s7-o8DFmOE_c_BZWupezm0i%2BW7E09vA@mail.gmail.com> <CAJ-VmonDJCLYWBPiz1ntFRm8aj4WQd5iHMKK0Wm3hcdjZmxghw@mail.gmail.com> <DA4CB2BA-A551-47A4-9E44-766FA29E2EF2@xcllnt.net> <1401735801.20883.103.camel@revolution.hippie.lan> <CAJ-VmomJyYh2XDBO4JRghRzRzL9yRVZScGDyG44TNytSjXBYFg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 02, 2014 at 12:27:47PM -0700, Adrian Chadd wrote: A> >> > .. and actually, bikeshedding for a moment, would we be able to move a A> >> > lot of these accessor methods over to inlines? Would that break the A> >> > Juniper way of doing things? A> >> A> >> That would definitely break Juniper as it doesn't give a stable A> >> ABI. A> >> A> >> I've suggested an approach that allows for both, but it was deemed A> >> unnecessary. The argument being that the function call overhead is A> >> negligible. A> >> A> >> We can always revisit that decision if needed... A> >> A> > A> > In my experience, function call overhead is anything but minimal, A> > especially on ARM platforms. A> A> Same on MIPS. And same on amd64. While benchmarking the counter(9), I even encountered artifacts when function call was faster than inline. Of course, function call shouldn't be via a pointer. -- Totus tuus, Glebius.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140603085941.GW50679>