Join Slack
Powered by
would there be a better way of just updating the c...
# stdlib
a
asad.awadia
02/01/2020, 3:48 PM
would there be a better way of just updating the count somehow
c
Czar
02/01/2020, 3:57 PM
updated code, now you only have each event in memory until it gets counted
Czar
02/01/2020, 4:40 PM
here you go, final memory efficient version
Czar
02/01/2020, 4:47 PM
you could also use
System.currentSystemMillies()
instead of
Instant.now()
to make it even more efficient.
7
Views
Open in Slack
Previous
Next