mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-13 15:52:01 +07:00
* The path in `getBackend` can contain different slashes as separators. * The path in `getBackend` is not always a root path. The result of benchmarks before the change on i9-12900, Windows 11: ``` Benchmark Mode Cnt Score Error Units MultiRoutingFileSystemBackendBenchmark.negativeMatchMatchWithoutPrefixAndWithBackslashes avgt 5 3.917 ± 0.927 ns/op MultiRoutingFileSystemBackendBenchmark.positiveMatchMatchWithoutPrefixAndWithBackslashes avgt 5 31.501 ± 2.661 ns/op ```` The result after the change on the same machine: ``` Benchmark Mode Cnt Score Error Units MultiRoutingFileSystemBackendBenchmark.negativeMatchMatchWithoutPrefixAndWithBackslashes avgt 5 3.736 ± 0.229 ns/op MultiRoutingFileSystemBackendBenchmark.positiveMatchMatchWithoutPrefixAndWithBackslashes avgt 5 49.046 ± 47.483 ns/op MultiRoutingFileSystemBackendBenchmark.positiveMatchMatchWithoutPrefixAndWithBackslashesAndLongPath avgt 5 49.051 ± 47.616 ns/op MultiRoutingFileSystemBackendBenchmark.positiveMatchMatchWithoutPrefixAndWithRegularSlashes avgt 5 47.105 ± 46.558 ns/op MultiRoutingFileSystemBackendBenchmark.positiveMatchMatchWithoutPrefixAndWithRegularSlashesAndLongPath avgt 5 47.055 ± 46.209 ns/op ``` The method became slower, but it still takes less than 100 nanoseconds. GitOrigin-RevId: e00219ff8bee3b26b5d5963714fe116d637874dc