Skip to content

Instantly share code, notes, and snippets.

@jduck
Last active July 21, 2016 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jduck/91f2fd1e8f17f57c625dc4f4756278e5 to your computer and use it in GitHub Desktop.
Save jduck/91f2fd1e8f17f57c625dc4f4756278e5 to your computer and use it in GitHub Desktop.
Make iovyroot more efficient...
commit 9bea387245e24c62fc203e7d57a10368acad5c6d
Author: Joshua J. Drake <github.jdrake@qoop.org>
Date: Fri May 27 17:21:50 2016 -0500
Reduce SENDTHREADS
diff --git a/jni/main.c b/jni/main.c
index 62784b8..716db5c 100644
--- a/jni/main.c
+++ b/jni/main.c
@@ -23,7 +23,7 @@
//pipe buffers are seperated in pages
#define PIPESZ (4096 * 32)
#define IOVECS (512)
-#define SENDTHREADS (1000)
+#define SENDTHREADS 32 // (1000)
#define MMAP_ADDR ((void*)0x40000000)
#define MMAP_SIZE (PAGE_SIZE * 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment