diff options
author | Scott Mosier <smosier@microsoft.com> | 2016-04-29 21:04:50 +0300 |
---|---|---|
committer | Scott Mosier <smosier@microsoft.com> | 2016-04-29 21:04:50 +0300 |
commit | ede47337e4736cda31f963e1dacaf38f1d09e2f5 (patch) | |
tree | f11e071c1264c85b8a4f5d8382eb3eabaf8f95f8 /src/Native/Runtime/windows | |
parent | e71eafae093ab4434e195dada959ac840d968bfc (diff) |
Implement type casting cache
This checkin is an adaptation of a cache used in the type loader. It is applied to our type casting APIs and brings a significant performance improvement to any type-cast-heavy workload.
The cache has an initial tuning that looks reasonable, but should still be considered provisional as we gather more data on its behavior across various workloads.
[tfs-changeset: 1600411]
Diffstat (limited to 'src/Native/Runtime/windows')
-rw-r--r-- | src/Native/Runtime/windows/PalRedhawkCommon.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Native/Runtime/windows/PalRedhawkCommon.cpp b/src/Native/Runtime/windows/PalRedhawkCommon.cpp index ef51831d3..77375ee9f 100644 --- a/src/Native/Runtime/windows/PalRedhawkCommon.cpp +++ b/src/Native/Runtime/windows/PalRedhawkCommon.cpp @@ -400,3 +400,7 @@ REDHAWK_PALEXPORT Int32 PalGetModuleFileName(_Out_ const TCHAR** pModuleNameOut, return 0; } +REDHAWK_PALEXPORT UInt64 __cdecl PalGetTickCount64() +{ + return GetTickCount64(); +} |