DescriptionCache the current working directory.
Recomputing this isn't terribly expensive, but it happens a lot so it's
nice to avoid.
Also avoid calling it in relative() when the path is already relative.
This brings current from about 0.070 iterations/us to about 0.097, and relative from about 0.080 to about 1.589.
R=rnystrom@google.com
Committed: https://github.com/dart-lang/path/commit/414bb1e1b7928090b88386c5f15f8ddee43fe96b
Patch Set 1 #
Total comments: 4
Patch Set 2 : Code review changes #
Total comments: 3
Messages
Total messages: 12 (3 generated)
|