Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local gateway / SOCKS5 in Golang #42

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Local gateway / SOCKS5 in Golang #42

wants to merge 3 commits into from

Conversation

liamzebedee
Copy link
Collaborator

This improves the performance of Dappnet, namely:

  • rewrite of the v1 local-gateway and socks5-proxy from JS into Go
  • much better parallelization/performance:
    • 1 - the socks5 proxy was probably broken in some way. it had a memory leak, and generally wasn't robust code. this caused some issues with loading multiple sites at once.
    • 2 - golang is generally faster than JS, it's compiled to machine code (arm/amd64), and qualitatively I found it easier to build HTTP servers with with more robust logic around handling bytes.
Screen Shot 2023-10-04 at 2 14 08 am Screen Shot 2023-10-04 at 2 14 10 am

* much faster loading of apps
* parallelization works now, doesn't fail (socks5 had memory leak etc)
@liamzebedee liamzebedee added the enhancement New feature or request label Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant