git-annex/Database
Joey Hess 2ff716be30
OsPath build flag no longer depends on filepath-bytestring
However, filepath-bytestring is still in Setup-Depends.
That's because Utility.OsPath uses it when not built with OsPath.
It would be maybe possible to make Utility.OsPath fall back to using
filepath, and eliminate that dependency too, but it would mean either
wrapping all of System.FilePath's functions, or using `type OsPath = FilePath`

Annex.Import uses ifdefs to avoid converting back to FilePath when not
on windows. On windows it's a bit slower due to that conversion.
Utility.Path.Windows.convertToWindowsNativeNamespace got a bit
slower too, but not really worth optimising I think.

Note that importing Utility.FileSystemEncoding at the same time as
System.Posix.ByteString will result in conflicting definitions for
RawFilePath. filepath-bytestring avoids that by importing RawFilePath
from System.Posix.ByteString, but that's not possible in
Utility.FileSystemEncoding, since Setup-Depends does not include unix.
This turned out not to affect any code in git-annex though.

Sponsored-by: Leon Schuermann
2025-02-10 16:39:55 -04:00
..
Keys more OsPath conversion 2025-01-27 10:13:43 -04:00
RepoSize remove stale live changes from reposize database 2024-08-28 13:57:25 -04:00
Benchmark.hs more OsPath conversion 2025-01-29 16:24:51 -04:00
ContentIdentifier.hs more OsPath conversion 2025-02-01 14:06:38 -04:00
Export.hs more OsPath conversion 2025-02-01 14:06:38 -04:00
Fsck.hs more OsPath conversion 2025-01-30 15:46:32 -04:00
Handle.hs more OsPath conversion 2025-01-25 11:56:35 -04:00
ImportFeed.hs more OsPath conversion 2025-02-01 14:06:38 -04:00
Init.hs more OsPath conversion 2025-01-29 16:24:51 -04:00
Keys.hs more OsPath conversion 2025-02-01 14:06:38 -04:00
Queue.hs more OsPath conversion 2025-01-25 11:56:35 -04:00
RawFilePath.hs OsPath build flag no longer depends on filepath-bytestring 2025-02-10 16:39:55 -04:00
RepoSize.hs more OsPath conversion 2025-01-30 15:46:32 -04:00
Types.hs sqlite datbase for importfeed 2023-10-23 16:46:22 -04:00
Utility.hs Sped up sqlite inserts 2x when built with persistent 2.14.5.0 2023-03-31 14:38:25 -04:00