ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Evgeniy Stanilovskiy" <estanilovs...@gridgain.com>
Subject Re: IgniteUtils#currentTimeMillis
Date Wed, 09 Aug 2017 13:46:21 GMT
I assume that Vladimir mention this mesurements:
https://shipilev.net/blog/2014/nanotrusting-nanotime/
can we simple measure with JMH x86 and arm our realization vs system call?

> As Dmitry P mentioned System.currentTimeMillis() is JVM intrinsic.
> Moreover, there is a daemon thread that updates the internal value which
> will not be needed after the change.
>
> If we remove U.currentTimeMillis() code will become more clear and
> consistent. Why we think that we can implement this particular timer  
> better
> than JVM developers?
>
> Vladmir, can you please share a benchmark that will show the problems? If
> it will then it will be a strong argument to keep the current
> implementation.
>
> --Yakov

Mime
View raw message