jedis icon indicating copy to clipboard operation
jedis copied to clipboard

Change Old IO (Stream) to NIO (Buffer & Channel)

Open HeartSaVioR opened this issue 12 years ago • 1 comments

Hello!

As programming paradigm has been changing, we should eventually support non-blocking. I've worked first step of supporting non-blocking - change Stream based IO to NIO. Although it's still "blocking" and there're no special performance gain, we can change it incrementally. I'm just beginner of NIO, so we can tune it for more faster.

  • replace IO Stream things to NIO utils I have made
    • RedisInputStream -> SocketChannelReader
    • RedisOutputStream -> SocketChannelWriter
  • modify relevent classes : Connection, Protocol
  • non blocking is not yet present (currently blocking)
  • modify Protocol unit test for testing with NIO utils

@xetorthio @marcosnils Please review and comment! Thanks!


This change is Reviewable

HeartSaVioR avatar May 24 '14 12:05 HeartSaVioR

Hi When this will be available for community?

srirama-rayaprolu avatar Apr 30 '19 10:04 srirama-rayaprolu