File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -92,13 +92,14 @@ namespace Sass {
92
92
93
93
static void setTaint (bool val) { taint = val; }
94
94
95
+ #ifdef SASS_CUSTOM_ALLOCATOR
95
96
inline void * operator new (size_t nbytes) {
96
97
return allocateMem (nbytes);
97
98
}
98
-
99
99
inline void operator delete (void * ptr) {
100
100
return deallocateMem (ptr);
101
101
}
102
+ #endif
102
103
103
104
virtual sass::string to_string () const = 0;
104
105
protected:
Original file line number Diff line number Diff line change 6
6
// When enabled we use our custom memory pool allocator
7
7
// With intense workloads this can double the performance
8
8
// Max memory usage mostly only grows by a slight amount
9
- #define SASS_CUSTOM_ALLOCATOR
9
+ // #define SASS_CUSTOM_ALLOCATOR
10
10
11
11
// How many buckets should we have for the free-list
12
12
// Determines when allocations go directly to malloc/free
You can’t perform that action at this time.
0 commit comments