Thread
#stdlib
    asad.awadia

    asad.awadia

    2 years ago
    would there be a better way of just updating the count somehow
    Czar

    Czar

    2 years ago
    updated code, now you only have each event in memory until it gets counted
    here you go, final memory efficient version
    you could also use
    System.currentSystemMillies()
    instead of
    Instant.now()
    to make it even more efficient.