diff options
author | bmilekic <bmilekic@FreeBSD.org> | 2002-07-24 15:11:23 +0000 |
---|---|---|
committer | bmilekic <bmilekic@FreeBSD.org> | 2002-07-24 15:11:23 +0000 |
commit | ffebbf61bcbfe9454ef61afb4985012a73ad52e0 (patch) | |
tree | d95cc09f997768fe9fb30935549a17ce07c84879 /libexec | |
parent | 2eda4f26f636e106d6bb1c4381d8d45e76755fa7 (diff) | |
download | FreeBSD-src-ffebbf61bcbfe9454ef61afb4985012a73ad52e0.zip FreeBSD-src-ffebbf61bcbfe9454ef61afb4985012a73ad52e0.tar.gz |
Move m_freem() from uipc_mbuf.c to subr_mbuf.c so it can take advantage
of the inlines, like its cousin, m_free(). Also, make a small (first
step?) optimisation of m_free() to use the MBP_PERSIST{,ENT} interface
to hold the lock across frees when possible. The thing is that right
now, we can only do this easily for at most across one mbuf + one
cluster free, as the comment mentions (it also explains why). Anyway,
some basic tests revealed a 5-10% overall improvement. Some of the
results can be found here:
http://people.freebsd.org/~bmilekic/code/measure.txt
Diffstat (limited to 'libexec')
0 files changed, 0 insertions, 0 deletions