I've seen this problem ... someone on this list once
told me it is a bug in Jython ... I've stopped using
Jython print to file and use a Java file writer
instead, the performance of that seems fine
(comparable with Java)
--- Aidan Finn <aidan.finn@...> wrote:
> Hi all,
> I'm having some serious performance problems with
> some python code when I run it using jython. It runs
> ok using cPython, but when I run it in jython
> it takes *forever*.
At first this
> contained a loop with a "print >>outfile, s" for
> each line of data. This worked ok in python (42s),
> but took ages in jython. When running in jython, I
> could watch the file slowly incrementing in size
> every second or so.
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard