Re: IO Performance issues

Shawn Silverman <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
The first thing I'd strongly suggest you to do is to use a PrintStream 
instead of a PrintWriter.  The default encoding is ISO-8859-1, and it 
sounds like this would be okay for your app.  The Writer classes go 
through an extra translation layer before the data reaches the actual 
OutputStream.

	-Shawn

On 17-Apr-04, at 7:45 AM, Julian Porter wrote:

> Hello,
>
> I'm working on a data-logging application where a TINI controls a 
> number of
> I2C sensors, which it samples at intervals.  Sensor records are then
> forwarded back over Ethernet to a PC.  The format for the TINI to PC
> messages is based on XML, so it's relatively verbose.  I'm using a
> PrintWriter to do the formatted XML output over Ethernet.
>
> My problem is that the IO is astonishingly slow - the TINI is being
> outperformed by a Basic Stamp!  Is there anything I can do to speed 
> things
> up?
>
> Julian

_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.