diff options
| author | LDj3SNuD <35856442+LDj3SNuD@users.noreply.github.com> | 2021-02-22 03:23:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-22 03:23:48 +0100 |
| commit | dc0adb533dc15a007e9ca2dc0533ef6a61f13393 (patch) | |
| tree | 4b3588600cfd163e9f7a72b176b15befe078e941 /ARMeilleure/Common/ThreadStaticPoolEnums.cs | |
| parent | 15868801148129802173f2162ebff24835cb20ba (diff) | |
PPTC & Pool Enhancements. (#1968)
* PPTC & Pool Enhancements.
* Avoid buffer allocations in CodeGenContext.GetCode(). Avoid stream allocations in PTC.PtcInfo.
Refactoring/nits.
* Use XXHash128, for Ptc.Load & Ptc.Save, x10 faster than Md5.
* Why not a nice Span.
* Added a simple PtcFormatter library for deserialization/serialization, which does not require reflection, in use at PtcJumpTable and PtcProfiler; improves maintainability and simplicity/readability of affected code.
* Nits.
* Revert #1987.
* Revert "Revert #1987."
This reverts commit 998be765cf7f7da5ff0c1c08de704c9012b0f49c.
Diffstat (limited to 'ARMeilleure/Common/ThreadStaticPoolEnums.cs')
| -rw-r--r-- | ARMeilleure/Common/ThreadStaticPoolEnums.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ARMeilleure/Common/ThreadStaticPoolEnums.cs b/ARMeilleure/Common/ThreadStaticPoolEnums.cs new file mode 100644 index 00000000..0d1d98d3 --- /dev/null +++ b/ARMeilleure/Common/ThreadStaticPoolEnums.cs @@ -0,0 +1,14 @@ +namespace ARMeilleure.Common +{ + public enum PoolSizeIncrement + { + Default = 200 + } + + public enum ChunkSizeLimit + { + Large = 200000 / PoolSizeIncrement.Default, + Medium = 100000 / PoolSizeIncrement.Default, + Small = 50000 / PoolSizeIncrement.Default + } +}
\ No newline at end of file |
