Giter Site home page Giter Site logo

Comments (5)

sdroege avatar sdroege commented on May 20, 2024

Use a profiler and check where the memory is actually used up, and then we can look at optimizing those things :)
Do you have a testcase for this that you can share btw?

from async-tungstenite.

coder3101 avatar coder3101 commented on May 20, 2024

I profiled using instruments and found that native-tls on linux was causing too much memory allocation. I replaced it with rust-tls and now 10 times less memory is being allocated.

During profiling I also found that connect_async was the highest contributor to memory usage.

from async-tungstenite.

sdroege avatar sdroege commented on May 20, 2024

During profiling I also found that connect_async was the highest contributor to memory usage.

Which part?

from async-tungstenite.

coder3101 avatar coder3101 commented on May 20, 2024

For native-tls, connect_async handshake is consuming most, also for some reason this is more prevalent incase of linux.

Screenshot 2022-12-23 at 7 34 22 PM

For rustls-tls

Screenshot 2022-12-23 at 7 36 26 PM

from async-tungstenite.

sdroege avatar sdroege commented on May 20, 2024

I see. Do you see any possibility of optimization in there? :)

from async-tungstenite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.