-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
Hi,
I was looking at this crate, evaluating it for my use.
While examining the code of TtlCacheBacking
I've noticed that it's using SystemTime
in order to determine the age of a cached entry.
My question is, why SystemTime
instead of Instance
? Was this due to a problem which you've encountered?
The reason for my questions is a caveat with SystemTime
which each call to SystemTime::now()
translates to a system call (at least on Linux) - a relatively slow operation.
Under heavy load, the affect of this can be significant.
Instant
, on the other hand, does not suffer from the same problem.
Metadata
Metadata
Assignees
Labels
No labels