Skip to content
Prev 48982 / 63424 Next

normalizePath is sometimes very slow for nonexistent UNC paths

Maximum 0.02022958 seconds out of 10^6 runs for me, so no obvious problem on OS X 10.9 (Snow Leopard build).

Matt
+  normalizePath("\\\\some/network/drive", mustWork = FALSE),
+  times = 1e6,
+  unit  = "s"
+ ))
Unit: seconds
                                                          expr       min
 normalizePath("\\\\\\\\some/network/drive", mustWork = FALSE) 8.877e-06
        lq    median       uq        max neval
 9.428e-06 9.621e-06 9.86e-06 0.02022958 1e+06
R version 3.1.1 (2014-07-10)
Platform: x86_64-apple-darwin10.8.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] graphics  grDevices utils     datasets  stats     methods   base     

other attached packages:
[1] microbenchmark_1.3-0
$OS.type
[1] "unix"

$file.sep
[1] "/"

$dynlib.ext
[1] ".so"

$GUI
[1] "AQUA"

$endian
[1] "little"

$pkgType
[1] "mac.binary"

$path.sep
[1] ":"

$r_arch
[1] ""
On 07 Sep 2014, at 10:07, Richard Cotton <richierocks at gmail.com> wrote: