summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/realpath.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-03-20 02:10:18 +0000
committerpeter <peter@FreeBSD.org>2001-03-20 02:10:18 +0000
commit266cea85ee85a1343c8d97993dc1f12fadb5db16 (patch)
tree4495c0a2e78047767d7f26e6af5e514fa392252f /lib/libc/stdlib/realpath.c
parente1c06db9614adac5dbc0db3be048e6d3bb916b61 (diff)
downloadFreeBSD-src-266cea85ee85a1343c8d97993dc1f12fadb5db16.zip
FreeBSD-src-266cea85ee85a1343c8d97993dc1f12fadb5db16.tar.gz
Use the same API as the example code.
Allow the initial hash value to be passed in, as the examples do. Incrementally hash in the dvp->v_id (using the official api) rather than add it. This seems to help power-of-two predictable filename trees where the filenames repeat on a power-of-two cycle and the directory trees have power-of-two components in it. The simple add then mask was causing things like 12000+ entry collision chains while most other entries have between 0 and 3 entries each. This way seems to improve things.
Diffstat (limited to 'lib/libc/stdlib/realpath.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud