Author: Tobias Weber <tobias_webe...@gmx.de>
Branch: c8-tcp-style-trx-length
Changeset: r2123:d62e76b278bd
Date: 2017-07-16 19:47 +0200
http://bitbucket.org/pypy/stmgc/changeset/d62e76b278bd/

Log:    Optimize min/max trx length

diff --git a/c8/stm/nursery.c b/c8/stm/nursery.c
--- a/c8/stm/nursery.c
+++ b/c8/stm/nursery.c
@@ -18,11 +18,11 @@
 #define DEFAULT_FILL_MARK_NURSERY_BYTES (NURSERY_SIZE / 4)
 
 // #define LARGE_FILL_MARK_NURSERY_BYTES   DEFAULT_FILL_MARK_NURSERY_BYTES
-#define LARGE_FILL_MARK_NURSERY_BYTES   0x1000000000L
+#define LARGE_FILL_MARK_NURSERY_BYTES   0x10000000L
 // #define LARGE_FILL_MARK_NURSERY_BYTES   0x1000000000000000L
 
-// corresponds to ~700 bytes nursery fill
-#define STM_MIN_RELATIVE_TRANSACTION_LENGTH (0.00000001)
+// corresponds to ~270 bytes nursery fill
+#define STM_MIN_RELATIVE_TRANSACTION_LENGTH (0.000001)
 #define BACKOFF_MULTIPLIER (20 / -log10(STM_MIN_RELATIVE_TRANSACTION_LENGTH))
 
 static inline void set_backoff(stm_thread_local_t *tl, double rel_trx_len) {
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to