Date: Thu, 12 Jul 2012 16:32:19 +0100 From: Chris Rees <utisoft@gmail.com> To: Konstantin Belousov <kostikbel@gmail.com> Cc: svn-doc-head@freebsd.org, svn-doc-all@freebsd.org, doc-committers@freebsd.org, Isabell Long <issyl0@freebsd.org> Subject: Re: svn commit: r39189 - head/en_US.ISO8859-1/books/porters-handbook Message-ID: <CADLo838yNznN57Mwy62aePvznHAVOfo6eLGfnJ_quj8TKr55Ng@mail.gmail.com> In-Reply-To: <20120712150548.GK2338@deviant.kiev.zoral.com.ua> References: <201207121412.q6CECngA011553@svn.freebsd.org> <20120712150548.GK2338@deviant.kiev.zoral.com.ua>
index | next in thread | previous in thread | raw e-mail
On Jul 12, 2012 4:06 PM, "Konstantin Belousov" <kostikbel@gmail.com> wrote: > > On Thu, Jul 12, 2012 at 02:12:49PM +0000, Isabell Long wrote: > > Author: issyl0 > > Date: Thu Jul 12 14:12:49 2012 > > New Revision: 39189 > > URL: http://svn.freebsd.org/changeset/doc/39189 > > > > Log: > > Add a section to the Dos and Don'ts section of the porter's handbook > > about avoiding Linuxisms. > > > + <para>A number of simple syscalls (for example > > + &man.gettimeofday.2;, &man.getpid.2;) are much faster on > > + &linux; than on any other operating system due to caching and > > + the vsyscall performance optimizations. Do not rely on them > > + being cheap in performance-critical applications. In general, > > + try hard to avoid syscalls if possible.</para> > And this is not quite true for HEAD and soon for RELENG_9. Quite true, so there are others that may be more true. What syscalls remain that are expensive for us that could be used as examples? Chrishome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo838yNznN57Mwy62aePvznHAVOfo6eLGfnJ_quj8TKr55Ng>
