Re: Java 1.4

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Vitalii Tymchyshyn <tivv00(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Java 1.4
Date: 2012-01-23 16:08:51
Message-ID: CADK3HHLTDRqM2D1krF04_fdJWMy0kPFk12E0hCpZBDkg9Mru-g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Mon, Jan 23, 2012 at 9:36 AM, Vitalii Tymchyshyn <tivv00(at)gmail(dot)com> wrote:
> 23.01.12 16:02, Dave Cramer написав(ла):
>
>> More recently a patch has been presented with the subject NIO support.
>> This patch in fact only provides an alternative implementation of
>> setTimeout. The author has promised an NIO implementation later.
>
> Small correction for everyone to understand it right: the patch does contain
> NIO support for V3 non-secure connections. V2 and secure requires extra work
> I am going to perform in the nearest time. I posted to the list early
> because I simply wanted to get feedback as early as possible.
>
> Note that NIO itself do not provide any specific benefits (may be
> performance?). What you get is much better control on IO, comparing to using
> streaming. So, you can get timeout processing in same thread, you can see
> when your buffers overflow and react accordingly, you can see when your SSL
> data is available for reading.
>
> As far as I can see, introducing NIO do not require global changes. The
> tricky thing is handling read during write, but this is additional feature
> NIO makes possible.

It is however making changes at the very core of the code. I'm not
saying it isn't good or bad, just that it will require considerable
testing.

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca

In response to

  • Re: Java 1.4 at 2012-01-23 14:36:31 from Vitalii Tymchyshyn

Responses

  • Re: Java 1.4 at 2012-01-23 16:45:31 from Vitalii Tymchyshyn

Browse pgsql-jdbc by date

  From Date Subject
Next Message Vitalii Tymchyshyn 2012-01-23 16:45:31 Re: Java 1.4
Previous Message Vitalii Tymchyshyn 2012-01-23 14:36:31 Re: Java 1.4