I'm okay with the changes now, but 1 last thing I didn't think about previously, we are holding recordcount and recordvalue separately, couldn't we just keep a single map recordValue -> recordCount?
We probably could do it but then but then we would have to extract value from serialized map key, which is more than just record value. It may decrease code readability.
We probably could do it but then but then we would have to extract value from serialized map key, which is more than just record value. It may decrease code readability.