printer: use std::path::absolute on Windows

This specifically avoids touching the file system, which can lead to
fairly dramatic speed-ups in large repositories with lots of matches.

Closes #2865
This commit is contained in:
Lucas Trzesniewski
2024-08-03 18:21:07 +02:00
committed by Andrew Gallant
parent d869038cf6
commit 119407d0a9
2 changed files with 61 additions and 26 deletions

View File

@@ -2,6 +2,11 @@ TBD
===
Unreleased changes. Release notes have not yet been written.
Performance improvements:
* [PERF #2865](https://github.com/BurntSushi/ripgrep/pull/2865):
Avoid using path canonicalization on Windows when emitting hyperlinks.
Bug fixes:
* [BUG #829](https://github.com/BurntSushi/ripgrep/issues/829),