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
[LoN]Kamikaze wrote:> Because of the devfs discussion I had a look into > sys/fs/devfs/devfs_rules.c .^ without 's'> > Somewhere in the sourcecode he/she's asking a question and I would like > to answer it. There just is no email address provided.[...] You can use the annotate/blame function of CVS: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/fs/devfs/devfs_rule.c?annotate=1.14.2.2 shows, that this part of the file has been committed by dd@ back in July 2002. -- Best regards / Viele Gr??e, barner@FreeBSD.org Simon Barner barner@gmx.de -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20051214/0a2ce097/attachment.bin