storing symlink in extended attribute (on ntfs)

egor duda deo@logos-m.ru
Thu May 10 06:20:00 GMT 2001


Hi!

  i've modified cygwin slightly to store symlink value in shortcut's
extended attribute, and to try to get it from there. my (rough)
benchmarking shows 30%-50% speedup in symlink resolution code.

turn ntea "on" before running.

create_tree.sh creates tree structure used for benchmarking,
traverse_tree.sh is actual "benchmark"

the patch is only proof-of-concept. of course, if will be cleaned up
(work only on ntfs, better error checking, etc.) if we decide we need
such functionality in cygwin. 

Comments?

egor.            mailto:deo@logos-m.ru icq 5165414 fidonet 2:5020/496.19
traverse_tree.sh
create_tree.sh
symlink-in-ea.diff

-------------- next part --------------
A non-text attachment was scrubbed...
Name: create_tree.sh
Type: text/x-shellscript
Size: 278 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-developers/attachments/20010510/2d957677/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: symlink-in-ea.diff
Type: text/x-diff
Size: 2436 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-developers/attachments/20010510/2d957677/attachment-0001.bin>
-------------- next part --------------
for x in 1 2 3 4; do
  for y in 1 2 3 4; do
    for z in 1 2 3 4; do
      for u in 1 2 3 4; do
        for v in 1 2 3 4; do
          cd /tmp/sl/$x/$y/$z/$u/$v ;
        done
      done
    done
  done
done


More information about the Cygwin-developers mailing list