Speed up lookups in autofs(5) by using red-black trees instead of linear
searches.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/fs/autofs/autofs_vfsops.c | ||
---|---|---|
162 ↗ | (On Diff #14300) | Why not use RB_FOREACH(_SAFE) ? |
sys/fs/autofs/autofs_vfsops.c | ||
---|---|---|
162 ↗ | (On Diff #14300) | I'm not sure that would work. What this does, basically, is it goes to the first leaf node found, deletes it, and loops around. So, in the top level loop we usually iterate over each element more than once. |