This task is not that complicated. You have a list of timestamps with the seconds and the number of interactions for that second. All you need to do is to find the seconds with the most interactions. On a 1h video this would be only 3600 calculations if currentValue id greater than maxValue. If you store it as a Plain integer array you would need ~14KB of RAM. For comparison, a 1987 homecomputer with a 68000 CPU would do ~7Million calculations per second and have ~512kB of RAM, depending on the options.