Increase use of pointers to improve memory usage. Currently uses around 16GB RAM.

This commit is contained in:
Fred Boniface
2024-04-09 21:07:21 +01:00
parent 259f514b3d
commit a2c52f7b8b
4 changed files with 22 additions and 10 deletions

View File

@@ -16,7 +16,7 @@ func RunCorpusUpdate(cfg *helpers.Configuration) error {
return err
}
unsortedCorpusData, err := parseCorpusData(&resp)
unsortedCorpusData, err := parseCorpusData(resp)
if err != nil {
log.Msg.Error("Error parsing Corpus data", zap.Error(err))
return err