Noda Time
Show / Hide Table of Contents

Namespace NodaTime.HighPerformance

The NodaTime.HighPerformance namespace contains types with similar functionality to the regular types in the NodaTime namespace, but with a reduced range in order to require less memory. These types also have improved performance in terms of execution time for operations, but are limited in functionality as well as range.

Structs

Duration64

Represents a fixed (and calendar-independent) length of time. This type is a equivalent to Duration, but with a more limited range (a few hundred years) and more compact, high performance representation. It is expected to be used in conjunction with Instant64, typically in scenarios where performance and/or memory usage are important. Note that in most cases, Duration is more appropriate and convenient (with more supported methods etc). This should effectively be regarded as a specialist type for unusually performance-sensitive scenarios.

Instant64

Represents an instant on the global timeline, with nanosecond resolution. This type is a equivalent to Instant, but with a more limited range (a few hundred years either side of the Unix epoch) and more compact, high performance representation. It is expected to be used in conjunction with Duration64, typically in scenarios where performance and/or memory usage are important. Note that in most cases, Instant is more appropriate and convenient (with more supported methods etc). This should effectively be regarded as a specialist type for unusually performance-sensitive scenarios.
In this article
Back to top Generated by DocFX