CodeHowlerMonkey / hitfactor.info

HitFactor.info -- Howler Monkey Classifiers
https://www.hitfactor.info
11 stars 4 forks source link

techDebt/memory: get rid of legacy scores, add quickDev mode, remove some bad tech stuff #35

Closed CodeHowlerMonkey closed 7 months ago

CodeHowlerMonkey commented 7 months ago

This PR is a total mess, don't do PRs like that =)

Legacy scores are removed now, because they don't really do anything other that allow us to see how many GMs/Ms/etc were achieved on old UNKNOWN HHFs. It doesn't do us any good going forward. But removing them frees up memory significantly, allowing to postpone data layer refactor

Legacy tech removed: promises -- it was a bad idea to use promises for synchronous data hydration and simply marking stuff as ready/notReady because of their overhead badLazy -- bad memoization using promises, replaced with lazy and getter functions wrapped with it @fastify/compress -- only made things slower, even on mobile connections, no idea why I added this in the first place tbh

Stuff added: quick mode -- new npm script, that used simple ENV_VARIABLE, which modifies processImport behavior to use partial data.