diff options
author | attilio <attilio@FreeBSD.org> | 2013-03-17 15:27:26 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2013-03-17 15:27:26 +0000 |
commit | a2e67affe3d12d77ed0950538f3fd7bf0963454c (patch) | |
tree | 965ab7dbb2efc5e50544c379f44166961824c7fe /sys/vm | |
parent | d8e32f6656682e071d8f76273dca3bb3eafe3092 (diff) | |
download | FreeBSD-src-a2e67affe3d12d77ed0950538f3fd7bf0963454c.zip FreeBSD-src-a2e67affe3d12d77ed0950538f3fd7bf0963454c.tar.gz |
Expand ambiguous comments some more.
Requested by: alc
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_radix.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/sys/vm/vm_radix.c b/sys/vm/vm_radix.c index 6ebc26f..d71cb55 100644 --- a/sys/vm/vm_radix.c +++ b/sys/vm/vm_radix.c @@ -35,11 +35,17 @@ * of this code must achieve highest possible performance. * * The implementation takes into account the following rationale: - * - Size of the nodes should be as small as possible. - * - There is no bias toward lookup operations over inserts or removes, - * and vice-versa. - * - On average not many nodes are expected to be full, hence level - * compression may just complicate things. + * - Size of the nodes should be as small as possible but still big enough + * to avoid a large maximum depth for the trie. This is a balance + * between the necessity to not wire too much physical memory for the nodes + * and the necessity to avoid too much cache pollution during the trie + * operations. + * - There is not a huge bias toward the number of lookup operations over + * the number of insert and remove operations. This basically implies + * that optimizations supposedly helping one operation but hurting the + * other might be carefully evaluated. + * - On average not many nodes are expected to be fully populated, hence + * level compression may just complicate things. */ #include <sys/cdefs.h> |