team-supercharge / rxsnappy

RxSnappy is a thread safe rxjava wrapper for the great SnappyDB fast key-value database for Android.
Apache License 2.0
49 stars 9 forks source link

Use a better cache timestamper than new Date() #4

Closed pakoito closed 8 years ago

pakoito commented 8 years ago

Use System.getTimeMilliseconds(), unnecessary allocations makes baby jesus weep.

http://stackoverflow.com/questions/368094/system-currenttimemillis-vs-new-date-vs-calendar-getinstance-gettime

richardradics commented 8 years ago

Thanks for your feedback! I'm going to start implement this.

pakoito commented 8 years ago

Fixed on 0.2