You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "FernandoGV667 (via GitHub)" <gi...@apache.org> on 2023/01/23 23:04:06 UTC

[GitHub] [netbeans] FernandoGV667 opened a new pull request, #5354: Improved reading method for writeData

FernandoGV667 opened a new pull request, #5354:
URL: https://github.com/apache/netbeans/pull/5354

   To improve the writeData() method, you can use a non-blocking write to reduce the overhead of the blocking I/O. Additionally, you can use the ByteBuffer.compact() method to move any unread data to the start of the buffer and set the position to the end of the unread data. This will help optimize the performance of the writeData() method and reduce the time it takes for the method to complete. You can also use the Selector.wakeup() method to wake up the selector thread and ensure that any queued data is written as soon as possible. Finally, you can use the SelectionKey.cancel() method to close the file descriptor associated with the selection key, preventing further I/O operations.
   
   ---
   **^Add meaningful description above**
   
   By opening a pull request you confirm that, unless explicitly stated otherwise, the changes -
   
    - are all your own work, and you have the right to contribute them.
    - are contributed solely under the terms and conditions of the Apache License 2.0 (see section 5 of the license for more information).
   
   Please make sure (eg. `git log`) that all commits have a valid name and email address for you in the Author field.
   
   If you're a first time contributor, see the Contributing guidelines for more information.
   
   If you're a committer, please label the PR before pressing "Create pull request" so that the right test jobs can run.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] FernandoGV667 closed pull request #5354: Improved reading method for writeData

Posted by "FernandoGV667 (via GitHub)" <gi...@apache.org>.
FernandoGV667 closed pull request #5354: Improved reading method for writeData
URL: https://github.com/apache/netbeans/pull/5354


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists