[rkward-cvs] rkward/rkward/rbackend rinterface.cpp,1.44,1.45 rthread.cpp,1.33,1.34
Thomas Friedrichsmeier
tfry at users.sourceforge.net
Wed Apr 12 13:12:51 UTC 2006
Update of /cvsroot/rkward/rkward/rkward/rbackend
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22785/rkward/rbackend
Modified Files:
rinterface.cpp rthread.cpp
Log Message:
Increase output buffer. Should speed up output further
Index: rinterface.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/rbackend/rinterface.cpp,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -d -r1.44 -r1.45
*** rinterface.cpp 20 Mar 2006 01:29:01 -0000 1.44
--- rinterface.cpp 12 Apr 2006 13:12:48 -0000 1.45
***************
*** 47,52 ****
#include <qtimer.h>
! // update output (for immediate output commands) at least this often:
! #define FLUSH_INTERVAL 50
//static
--- 47,52 ----
#include <qtimer.h>
! // update output (for immediate output commands) at least this often (msecs):
! #define FLUSH_INTERVAL 100
//static
Index: rthread.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/rbackend/rthread.cpp,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** rthread.cpp 11 Apr 2006 15:43:19 -0000 1.33
--- rthread.cpp 12 Apr 2006 13:12:48 -0000 1.34
***************
*** 33,37 ****
#include <signal.h> // needed for pthread_kill
! #define MAX_BUF_LENGTH 1000
RThread::RThread () : QThread (), REmbedInternal () {
--- 33,37 ----
#include <signal.h> // needed for pthread_kill
! #define MAX_BUF_LENGTH 4000
RThread::RThread () : QThread (), REmbedInternal () {
***************
*** 215,218 ****
--- 215,219 ----
current_output = new ROutput;
current_output->type = ROutput::Output;
+ current_output->output.reserve (MAX_BUF_LENGTH + 50);
}
current_output->output.append (buf);
More information about the rkward-tracker
mailing list