chore: cleanup & improve networking#1433
Merged
0utplay merged 76 commits intonightly-jdk22from Jul 7, 2024
Merged
Conversation
… network-refactor
… network-refactor
… network-refactor
0utplay
approved these changes
Jul 6, 2024
Member
0utplay
left a comment
There was a problem hiding this comment.
Just small comments and some questions
driver/src/main/java/eu/cloudnetservice/driver/network/chunk/ChunkedFileQueryBuilder.java
Show resolved
Hide resolved
driver/src/main/java/eu/cloudnetservice/driver/network/chunk/ChunkedPacketHandler.java
Show resolved
Hide resolved
driver/src/main/java/eu/cloudnetservice/driver/network/chunk/data/ChunkSessionInformation.java
Show resolved
Hide resolved
driver/src/main/java/eu/cloudnetservice/driver/network/netty/NettyUtil.java
Show resolved
Hide resolved
driver/src/main/java/eu/cloudnetservice/driver/network/netty/buffer/NettyDataBufFactory.java
Show resolved
Hide resolved
...in/java/eu/cloudnetservice/driver/network/rpc/defaults/handler/DefaultRPCHandlerBuilder.java
Outdated
Show resolved
Hide resolved
...src/main/java/eu/cloudnetservice/driver/network/rpc/defaults/object/DefaultObjectMapper.java
Show resolved
Hide resolved
...ain/java/eu/cloudnetservice/driver/network/rpc/defaults/object/data/AllocationStatistic.java
Outdated
Show resolved
Hide resolved
driver/src/main/java/eu/cloudnetservice/driver/network/rpc/defaults/rpc/DefaultRPC.java
Show resolved
Hide resolved
driver/src/main/java/eu/cloudnetservice/driver/network/rpc/listener/RPCPacketListener.java
Outdated
Show resolved
Hide resolved
derklaro
added a commit
that referenced
this pull request
Jul 8, 2024
The current network implementation has some issues that needed to be addressed. Most noticeble are: - issues with very high native memory consumption due to netty not releasing native memory instantly - issues with a lot of loaded classes that were auto generated - use of ASM which leads to issues with server implementations - rpc code generation can be noticeably improved, especially to ease the usage - and many places where the old code was just messy and could be replaced with a cleaner & easier to read version - bump the required java version for cloudnet to 22 & enable preview features. - replace the usages of ASM in code generation with the java classfile api - rewrite rpc handling & code generation completely - improve default values for settings (for example lower thread counts for packet handling) - improve chunked data transfer, prevent race conditions when querying files - use custom buffer allocator that releases native memory immediately instead of relying on GC - higher test coverage - ... and many more small cleanups and improvements Improved networking that should ease the use for external users and definitely decrease the amount of reported errors.
derklaro
added a commit
that referenced
this pull request
Jul 9, 2024
The current network implementation has some issues that needed to be addressed. Most noticeble are: - issues with very high native memory consumption due to netty not releasing native memory instantly - issues with a lot of loaded classes that were auto generated - use of ASM which leads to issues with server implementations - rpc code generation can be noticeably improved, especially to ease the usage - and many places where the old code was just messy and could be replaced with a cleaner & easier to read version - bump the required java version for cloudnet to 22 & enable preview features. - replace the usages of ASM in code generation with the java classfile api - rewrite rpc handling & code generation completely - improve default values for settings (for example lower thread counts for packet handling) - improve chunked data transfer, prevent race conditions when querying files - use custom buffer allocator that releases native memory immediately instead of relying on GC - higher test coverage - ... and many more small cleanups and improvements Improved networking that should ease the use for external users and definitely decrease the amount of reported errors.
derklaro
added a commit
that referenced
this pull request
Jul 12, 2024
The current network implementation has some issues that needed to be addressed. Most noticeble are: - issues with very high native memory consumption due to netty not releasing native memory instantly - issues with a lot of loaded classes that were auto generated - use of ASM which leads to issues with server implementations - rpc code generation can be noticeably improved, especially to ease the usage - and many places where the old code was just messy and could be replaced with a cleaner & easier to read version - bump the required java version for cloudnet to 22 & enable preview features. - replace the usages of ASM in code generation with the java classfile api - rewrite rpc handling & code generation completely - improve default values for settings (for example lower thread counts for packet handling) - improve chunked data transfer, prevent race conditions when querying files - use custom buffer allocator that releases native memory immediately instead of relying on GC - higher test coverage - ... and many more small cleanups and improvements Improved networking that should ease the use for external users and definitely decrease the amount of reported errors.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The current network implementation has some issues that needed to be addressed. Most noticeble are:
Modification
Result
Improved networking that should ease the use for external users and definitely decrease the amount of reported errors.