Skip to content

[Optimization] Transparent Snap Local Bypass for Sub-microsecond P2P Body#1

Open
KunshrJain wants to merge 1 commit intoultravnc:masterfrom
KunshrJain:snap-integration
Open

[Optimization] Transparent Snap Local Bypass for Sub-microsecond P2P Body#1
KunshrJain wants to merge 1 commit intoultravnc:masterfrom
KunshrJain:snap-integration

Conversation

@KunshrJain
Copy link
Copy Markdown

The Problem
Local P2P node communication (127.0.0.1) suffers from the overhead of the Linux networking stack even for local traffic.

The Solution
Implemented a Transparent Snap Local Bypass:

Socket Interception:
socket.cpp
now detects local connections and redirects them to Snap SHM links.
Zero-Copy Redirector: Uses a singleton manager to map TCP semantics to high-performance SHM.
Benefit
Zero-config, sub-microsecond P2P performance for nodes running on the same host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant