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 Passed - Unit
No Test Coverage - Build Status
Buildable 2888 Build 2912: arc lint + arc unit
Event Timeline
sys/fs/autofs/autofs_vfsops.c | ||
---|---|---|
162 | Why not use RB_FOREACH(_SAFE) ? |
sys/fs/autofs/autofs_vfsops.c | ||
---|---|---|
162 | 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. |