mirror of
https://github.com/MaintainTeam/Hypatia.git
synced 2025-03-01 05:48:23 +03:00
- Trim hashes to 8 characters instead of 12. Saves ~10MB by default. - Optimized databases. Saves ~8MB by default. - Deduplicated strings. Saves ~12MB by default. idle usage on arm64 - With defaults: ~165MB, previously ~195MB - With all databases: ~350MB, previously ~650MB Signed-off-by: Tad <tad@spotco.us>
8 lines
203 B
Python
Executable file
8 lines
203 B
Python
Executable file
import sys
|
|
|
|
database = open(sys.argv[1], "r");
|
|
for line in database:
|
|
arrSplit = line.strip().split(":");
|
|
strHash = arrSplit[0];
|
|
strName = arrSplit[2].split("-")[0];
|
|
print(strHash + ":0:" + strName);
|