CharsetDecoder Performance, What is it doing?

  • Follow


Hi,

I'm profiling an application which processes large amounts of data and
have noticed that 25% of the time is spent doing the decode of bytes
into chars. I tried to find out what the actual code was behind
charsetdecoder but had no luck. However have other people found this
NIO class to be slow. When I say processing large amounts of data I
mean around 30gb's a day.

TIA
0
Reply nick_wakefield (5) 12/2/2003 1:30:35 AM

Niko wrote:
> Hi,
> 
> I'm profiling an application which processes large amounts of data and
> have noticed that 25% of the time is spent doing the decode of bytes
> into chars. I tried to find out what the actual code was behind
> charsetdecoder but had no luck. However have other people found this
> NIO class to be slow. When I say processing large amounts of data I
> mean around 30gb's a day.
> 
> TIA

It's converting bytes to unicode strings.

It decodes bytes using whatever characterset / character encoding scheme 
you have specified, or using the "platform default" if you have not 
specified. I owould guess that either ASCII or 8859_1 would be the 
fastest characterset to convert, if you're looking for speed-ups. But of 
course, if the text isn't really one of those two then you will run into 
characterset conversion problems.

Steve

0
Reply shoot3 (240) 12/2/2003 8:43:42 PM


1 Replies
54 Views

(page loaded in 0.043 seconds)

Similiar Articles:













7/10/2012 7:29:34 AM


Reply: