hsr-optimizer icon indicating copy to clipboard operation
hsr-optimizer copied to clipboard

[Tech debt] Clean up / speed up relic potential scorer

Open fribbels opened this issue 1 year ago • 2 comments

Motivation

On page load, we score every single relic's potential against all characters. This n x m operation is growing pretty fast with 2000 relics and 60+ characters now, and this can take multiple seconds on page load

Goal

Look into if this is necessary and how we can optimize

fribbels avatar Aug 15 '24 08:08 fribbels

maybe a settings option to only score for the top n characters in the priority list?

FI00ds avatar Oct 23 '24 19:10 FI00ds

I think we should analyze the scoring algorithm and look for repeated work - there's going to be a lot of calculations that can be cached between characters. For example all the 0.75/1/1/1 crit characters can probably reuse the same scoring results between each other

fribbels avatar Oct 24 '24 07:10 fribbels