https://bugzilla.mindrot.org/show_bug.cgi?id=3931
--- Comment #2 from Ben Lewis <[email protected]> --- Hi Darren, Why is the wildcard causing a stat on each file? (Can't it just check what is in the directory, and filter the results through a regex?) Also why isn't that stat already performed if I'm using -l (to list permissions, timestamp, file size, etc) without the wildcard? BTW, regards the local shell analogy, the wildcard there would get expanded by the shell before the arguments are passed to /usr/sbin/ls; I'm assuming there is no requirement for the architecture of sftp to be implemented that same way? Note that "ls /tmp" and "ls /tmp/1000" (listing one file vs a whole directory) both generate the same number of file syscalls (so this seems a poor measure of the amount of work really needed); the same information can also be produced by "echo /tmp/*" with even fewer syscalls (but perhaps no sftp equivalent). Also note that "ls -l /tmp" and "ls -l /tmp/*" both generate nearly the same number of file syscalls (so it's not obvious to me why the wildcard still hurts performance of "ls -l"). Thanks -- You are receiving this mail because: You are watching the assignee of the bug. You are watching someone on the CC list of the bug. _______________________________________________ openssh-bugs mailing list [email protected] https://lists.mindrot.org/mailman/listinfo/openssh-bugs
