aboutsummaryrefslogtreecommitdiff
path: root/WinRpMalloc/src/pch.h
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-01-08 14:44:01 -0500
committerLibravatar vnugent <public@vaughnnugent.com>2023-01-08 14:44:01 -0500
commitbe6dc557a3b819248b014992eb96c1cb21f8112b (patch)
tree5361530552856ba8154bfcfbfac8377549117c9e /WinRpMalloc/src/pch.h
parent072a1294646542a73007784d08a35ffcad557b1b (diff)
Initial commit
Diffstat (limited to 'WinRpMalloc/src/pch.h')
-rw-r--r--WinRpMalloc/src/pch.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/WinRpMalloc/src/pch.h b/WinRpMalloc/src/pch.h
new file mode 100644
index 0000000..d8c2409
--- /dev/null
+++ b/WinRpMalloc/src/pch.h
@@ -0,0 +1,55 @@
+/*
+* Copyright (c) 2022 Vaughn Nugent
+*
+* Library: VNLib
+* Package: WinRpMalloc
+* File: pch.h
+*
+* pch.h is part of WinRpMalloc which is part of the larger
+* VNLib collection of libraries and utilities.
+*
+* WinRpMalloc is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published
+* by the Free Software Foundation, either version 2 of the License,
+* or (at your option) any later version.
+*
+* WinRpMalloc is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with WinRpMalloc. If not, see http://www.gnu.org/licenses/.
+*/
+
+// pch.h: This is a precompiled header file.
+// Files listed below are compiled only once, improving build performance for future builds.
+// This also affects IntelliSense performance, including code completion and many code browsing features.
+// However, files listed here are ALL re-compiled if any one of them is updated between builds.
+// Do not add files here that you will be updating frequently as this negates the performance advantage.
+
+#ifndef PCH_H
+#define PCH_H
+
+#include "framework.h"
+// add headers that you want to pre-compile here
+
+//Using firstclass heaps, define
+#define RPMALLOC_FIRST_CLASS_HEAPS 1
+
+/*
+* Enabling adaptive thread cache because I am not using thread initilaizations
+*/
+#define ENABLE_ADAPTIVE_THREAD_CACHE 1
+
+#ifdef DEBUG
+
+ENABLE_VALIDATE_ARGS 1
+ENABLE_ASSERTS 1
+ENABLE_STATISTICS 1
+
+#endif // DEBUG
+
+#include "rpmalloc.h"
+
+#endif //PCH_H