From: Patrick C. <pat...@nt...> - 2003-01-26 13:39:20
|
At 12:44 26/01/2003, Diez B. Roggisch wrote: >Maybe this isn't a jython-issue, but a java one. I recently noticed on >several >occasions that dealing with large input in java causes strange delays - as if >some internal buffer is filled (slowly) before the actual streams operate on >the data. looks like a Jython issue, and this has been raised already, as Samuele kindly points out 'file flushed to disk too often' https://sourceforge.net/tracker/index.php?func=detail&aid=674932&group_id=12867&atid=112867 >However, as you have isolated the code so far, wouldn't it be possible to use >a java-stream to write the csv lines? Maybe you lose some convenience there, >but at least for debugging it would be helpful to see if the performance >increases. If not - then you know who to blame and can joyfully switch to >python :) Yes performance increases dramatically if I do it the Java way with FileOutputStream and PrintStream. Not as fast as Python but, OK for what I need. I'm a bit disappointed I can't do it the simple Python way! thanks guys Patrick |