From: David Daney <ddaney@avtrex.com>
To: benjamin.de-dardel@laposte.net
Cc: java@gcc.gnu.org
Subject: Re: Performances with gcj
Date: Mon, 11 Aug 2008 04:10:00 -0000 [thread overview]
Message-ID: <489FBB74.1020808@avtrex.com> (raw)
In-Reply-To: <489F309D.3050609@gmail.com>
Benjamin de Dardel wrote:
> Hi all,
>
> I had to release a program that executes an external process and gets
> its standard output.
> I implemented a solution with threads and pipes to redirect inputs and
> outputs (cf PipeTest.java).
>
> I choose the 'find /' command to test it.
> I'm very surprised about gcj performances which are 5x slowly than sun
> jvm.
> In fact, I expected that my compiled program would be faster than all
> jvm.
>
> Do you have an idea about these differences ?
> Is that the gnu classpath implementation which is quiet slow ?
>
I have not profiled it, but it is not too surprising.
You could try buffering the process' input stream before sending it
through the InputStreamReader.
I suspect that the slowdown is in the character set conversion. You are
using the default converter. You could also try something like US-ASCII
and see if that speeds things up.
David Daney
next prev parent reply other threads:[~2008-08-11 4:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-10 18:17 Benjamin de Dardel
2008-08-11 4:10 ` David Daney [this message]
2008-08-12 19:10 ` Benjamin de Dardel
2008-08-10 18:30 ffileppo
2008-08-10 21:34 ` Performances " Benjamin de Dardel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=489FBB74.1020808@avtrex.com \
--to=ddaney@avtrex.com \
--cc=benjamin.de-dardel@laposte.net \
--cc=java@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).