From 311b78ae82fc8b06f0eefbd54d6290f3a40d5e23 Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 4 Feb 2020 12:31:00 +0900 Subject: [windows] Use native walker since output of DOS command is not UTF-8 encoded (#1847) Makes scanning 300x faster on Windows --- src/constants.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/constants.go') diff --git a/src/constants.go b/src/constants.go index c568932d..9c635ea5 100644 --- a/src/constants.go +++ b/src/constants.go @@ -62,8 +62,6 @@ func init() { defaultCommand = `set -o pipefail; command find -L . -mindepth 1 \( -path '*/\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \) -prune -o -type f -print -o -type l -print 2> /dev/null | cut -b3-` } else if os.Getenv("TERM") == "cygwin" { defaultCommand = `sh -c "command find -L . -mindepth 1 -path '*/\.*' -prune -o -type f -print -o -type l -print 2> /dev/null | cut -b3-"` - } else { - defaultCommand = `for /r %P in (*) do @(set "_curfile=%P" & set "_curfile=!_curfile:%__CD__%=!" & echo !_curfile!)` } } -- cgit v1.2.3