The prior code that tried to get the newest/larger time between the too performed: * 2 time.Time.UnixNano() retrievals: 2 multiplications, 2 additions * 1 math.Max comparison * 1 time.Unix(0, minTime) creation but really this code could just use native operations on: time.Time.After() simply. This now becomes a single operation, single comparison for the same effect. |
||
|---|---|---|
| .. | ||
| applications/transfer | ||
| core | ||
| light-clients | ||
| spec | ||
| testing | ||