Date: Wed, 14 Dec 2005 10:11:28 +0100 From: "[LoN]Kamikaze" <LoN_Kamikaze@gmx.de> To: freebsd-stable@freebsd.org Subject: how to reach a developer Message-ID: <439FE1C0.3050807@gmx.de>
next in thread | raw e-mail | index | archive | help
Because of the devfs discussion I had a look into sys/fs/devfs/devfs_rules.c . Somewhere in the sourcecode he/she's asking a question and I would like to answer it. There just is no email address provided. The question is as follows: /* * XXX: Does it matter whether we do * * foreach(dk in ds) * foreach(de in dm) * apply(dk to de) * * as opposed to * * foreach(de in dm) * foreach(dk in ds) * apply(dk to de) * * The end result is obviously the same, but does the order * matter? */ Supposing that there is only read access to dk and only de is manipulated by the operation apply(dk to de); I have to say that the second example is a lot more efficient, because the first one causes lots of unnecessary cache to memory writebacks. Which would be gracefuly avoided by the second one. - Dominic
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?439FE1C0.3050807>