Skip to content

Commit cc3692c

Browse files
committed
Disabled custom allocator for now
1 parent 30e3a25 commit cc3692c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/memory/shared_ptr.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,14 @@ namespace Sass {
9292

9393
static void setTaint(bool val) { taint = val; }
9494

95+
#ifdef SASS_CUSTOM_ALLOCATOR
9596
inline void* operator new(size_t nbytes) {
9697
return allocateMem(nbytes);
9798
}
98-
9999
inline void operator delete(void* ptr) {
100100
return deallocateMem(ptr);
101101
}
102+
#endif
102103

103104
virtual sass::string to_string() const = 0;
104105
protected:

src/settings.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// When enabled we use our custom memory pool allocator
77
// With intense workloads this can double the performance
88
// Max memory usage mostly only grows by a slight amount
9-
#define SASS_CUSTOM_ALLOCATOR
9+
// #define SASS_CUSTOM_ALLOCATOR
1010

1111
// How many buckets should we have for the free-list
1212
// Determines when allocations go directly to malloc/free

0 commit comments

Comments
 (0)