Browse Source

further mark-and-sweep tuning (increase mark-and-sweep interval when refcounts are used)

pull/1/head
Sami Vaarala 11 years ago
parent
commit
bb0510ff4d
  1. 2
      src/duk_heap.h

2
src/duk_heap.h

@ -124,7 +124,7 @@
*/
#if defined(DUK_USE_MARK_AND_SWEEP)
#if defined(DUK_USE_REFERENCE_COUNTING)
#define DUK_HEAP_MARK_AND_SWEEP_TRIGGER_MULT 2560 /* 10x heap size */
#define DUK_HEAP_MARK_AND_SWEEP_TRIGGER_MULT 12800 /* 50x heap size */
#define DUK_HEAP_MARK_AND_SWEEP_TRIGGER_ADD 1024
#define DUK_HEAP_MARK_AND_SWEEP_TRIGGER_SKIP 256
#else

Loading…
Cancel
Save