Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 6 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public class ExampleClient {

## Zero Copy
By default to make RSocket easier to use it copies the incoming Payload. Copying the payload comes at cost to performance
and latency. If you want to use zero copy you must disable this. To disable copying you must include a `frameDecoder`
and latency. If you want to use zero copy you must disable this. To disable copying you must include a `payloadDecoder`
argument in your `RSocketFactory`. This will let you manage the Payload without copying the data from the underlying
transport. You must free the Payload when you are done with them
or you will get a memory leak. Used correctly this will reduce latency and increase performance.
Expand All @@ -91,7 +91,7 @@ or you will get a memory leak. Used correctly this will reduce latency and incre
```java
RSocketFactory.receive()
// Enable Zero Copy
.frameDecoder(Frame::retain)
.payloadDecoder(Frame::retain)
.acceptor(new PingHandler())
.transport(TcpServerTransport.create(7878))
.start()
Expand All @@ -105,7 +105,7 @@ RSocketFactory.receive()
Mono<RSocket> client =
RSocketFactory.connect()
// Enable Zero Copy
.frameDecoder(Frame::retain)
.payloadDecoder(Frame::retain)
.transport(TcpClientTransport.create(7878))
.start();
```
Expand Down
199 changes: 0 additions & 199 deletions 199 rsocket-core/src/jmh/java/io/rsocket/RSocketPerf.java

This file was deleted.

This file was deleted.

Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.