git-annex/Database
Joey Hess c9866d2164
speed up populating the importfeed database
Avoid conversion from ByteString to String for urls that will just be
converted right back to ByteString to go into the database.

Also setTempUrl is not used by importfeed, so avoid checking for temp
urls in this code path.

This benchmarks as only a small improvement. From 2.99s to 2.78s
when populating a database with 33k urls.

Note that it does not seem worth replacing URLString with URLByteString
generally, because the ways urls are used all entails either parseURI,
which takes a string, or passing a parameter to eg curl, which also is
currently a string.

Sponsored-by: Leon Schuermann on Patreon
2023-10-25 13:00:17 -04:00
..
Keys sqlite datbase for importfeed 2023-10-23 16:46:22 -04:00
Benchmark.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
ContentIdentifier.hs sqlite datbase for importfeed 2023-10-23 16:46:22 -04:00
Export.hs sqlite datbase for importfeed 2023-10-23 16:46:22 -04:00
Fsck.hs enable TypeOperators 2023-08-01 18:33:39 -04:00
Handle.hs silence build warning 2023-09-15 07:56:10 -04:00
ImportFeed.hs speed up populating the importfeed database 2023-10-25 13:00:17 -04:00
Init.hs fix init .git/annex/ perms for core.sharedRepository 2023-04-26 16:14:21 -04:00
Keys.hs Revert "revert recent bug fix temporarily for release" 2023-02-14 14:11:23 -04:00
Queue.hs fix MVar deadlock when sqlite commit fails 2022-06-06 12:16:55 -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