26 Commits
Author SHA1 Message Date
Timmy Welch 4b91c400b5 Add more metrics
ids: ID Count
consistent_ids: ID Count == A Hash Count
consistent_hashes: A Hash Count == D Hash Count == P Hash Count
2026-11-05 16:29:43 -08:00
Timmy Welch c98784ea1d Update storage for V3 hashes
Backends use the V3 hashes and ids loaded in place instead of
building a separate runtime IDMap
2026-11-05 16:29:43 -08:00
Timmy Welch 13e9858d92 Remove the NewIDs type 2026-11-05 16:29:06 -08:00
Timmy Welch b85659a845 Remove IDList
Use a slice instead
2026-11-05 16:29:01 -08:00
Timmy Welch 3cbec4606b Rename BasicMap to Basic
Keep BasicMap as an alias for CLI flags
Fix the unknown storage type error message
2026-11-05 16:28:59 -08:00
Timmy Welch 1129ff6f7a Rename SavedHashes to SavedHashesV2 2026-11-05 16:28:57 -08:00
Timmy Welch e374614124 Move hashing code into ch/ and comic-hasher to the repo root
So `go install gitea.narnian.us/lordwelch/comic-hasher@latest` works
2026-11-05 16:28:41 -08:00
Timmy Welch 32109308d4 Intermediate between state between Fix writing hashes and V3
Update ID Group implementation to use slices instead of maps

Uses a slice of IDs and uses the insertion index as a reference to the ID

VP-tree:
  Fix returning 0 for the distance for matches
  Fix discarding exact matches
  Explicitly mark hash slices as unused

SQLite: Decode saved hashes for debugging/testing

Fix sqlite and vptree implementations
2026-11-05 16:28:04 -08:00
Timmy Welch 2a03fa93c2 Migrate packages to custom log package
Use os.Exit in place of log.Fatal
Register a -log-level flag mapping loggers onto levels
2026-11-05 16:27:55 -08:00
Timmy Welch aa7bf3c2af go fmt 2026-11-02 15:19:36 -08:00
Timmy Welch 5b26690994 Improve map performance 2026-09-23 12:55:43 -07:00
Timmy Welch f3e0c9f49a Fix id check 2026-09-06 16:19:27 -07:00
Timmy Welch f5e22f2e1d Stop overwriting results 2026-09-06 15:46:58 -07:00
Timmy Welch 9abcf09457 Use a smaller struct for basic map
Memory savings 377MB -> 331MB
Search may be faster GC appears to be skewing results
2026-09-06 01:42:19 -07:00
Timmy Welch 52a16df180 Reduce log spam 2026-09-03 05:55:14 -07:00
Timmy Welch acafe20bda Add metrics 2026-09-03 03:32:11 -07:00
Timmy Welch 8bcecfa307 Fix performance 2026-09-03 03:24:12 -07:00
Timmy Welch dcccbcfb60 fixup 2026-09-02 20:53:38 -07:00
Timmy Welch f7e42f3171 Fix ID's not getting added to basicmap 2026-09-02 18:42:56 -07:00
Timmy Welch 412b0e07bd Implement downloading and automatically saving the current hashes.gz 2026-05-17 18:28:39 -07:00
Timmy Welch a3b42127b1 Make the gokrazy build slightly smaller 2026-03-10 17:44:16 -07:00
Timmy Welch 5c3be1e733 Fix finding exact hashes 2026-03-01 16:11:55 -08:00
Timmy Welch 211bd2b5e9 Reduce copies 2026-02-25 00:56:53 -08:00
Timmy Welch 5a8f7deac5 Fix saving hashes 2026-02-24 22:00:01 -08:00
Timmy Welch 32ec6147ea More logging 2026-02-22 12:18:28 -08:00
Timmy Welch 22d59aa221 Move HashStorage to its own package 2025-05-31 19:00:40 -07:00