fix #46 Using ZSTD context to improve performance

This commit is contained in:
yuanyuanxiang
2025-02-07 18:59:15 +08:00
parent 2b9ef8e935
commit 1fce74e06e
8 changed files with 67 additions and 7 deletions

View File

@@ -4,6 +4,9 @@
#pragma comment(lib,"ws2_32.lib")
#include "CpuUseage.h"
#include "Buffer.h"
#if USING_CTX
#include "zstd/zstd.h"
#endif
#include <Mstcpip.h>
#define PACKET_LENGTH 0x2000
@@ -78,6 +81,11 @@ public:
ULONG m_ulCurrentThread;
ULONG m_ulBusyThread;
#if USING_CTX
ZSTD_CCtx* m_Cctx; // ѹ<><D1B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ZSTD_DCtx* m_Dctx; // <20><>ѹ<EFBFBD><D1B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#endif
CCpuUsage m_cpu;
ULONG m_ulKeepLiveTime;