Merged
CachedTimeSource - Added Thread.MemoryBarrier to avoid code-reordering#5429
Conversation
Contributor
Author
|
Before without Interlocked.Exchange on 32bit target-platform: After with Interlocked.Exchange on 32bit target-platform: So 4 times slower performance-hit when 32bit / x86, but still faster than Accurate-Time-Source. |
Contributor
Author
|
Seems that Intel CPU uses the FPU-registers for handling 64-bit-values, thus even when running in 32-bit-mode then the chance of tearing is minimal. So I guess that is why NLog worked fine without Interlocked on 32-bit platforms |
snakefoot
force-pushed
the
time-source-cached
branch
from
December 7, 2023 17:53
79c1b4a to
049bd9d
Compare
snakefoot
force-pushed
the
time-source-cached
branch
2 times, most recently
from
December 7, 2023 18:23
8387fd7 to
5da1154
Compare
snakefoot
force-pushed
the
time-source-cached
branch
from
December 7, 2023 18:23
5da1154 to
0b8e04e
Compare
|
Kudos, SonarCloud Quality Gate passed! |
Contributor
Author
|
Instead performed new benchmark of adding
|
This was referenced Aug 26, 2025
This was referenced Dec 8, 2025
This was referenced Jan 7, 2026
This was referenced Jan 27, 2026
This was referenced Apr 22, 2026
This was referenced May 29, 2026
This was referenced Jul 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.