Giter Club home page Giter Club logo

Comments (7)

zzau13 avatar zzau13 commented on August 16, 2024 2

The implementation zzau13@e4aced3, but has some problems:

  • need nightly and I have no idea how to put it only to compile in nightly, so that ntex in stable does not compile.

from ntex.

fafhrd91 avatar fafhrd91 commented on August 16, 2024

i dont have time at the moment

from ntex.

fafhrd91 avatar fafhrd91 commented on August 16, 2024

how is performance?

from ntex.

zzau13 avatar zzau13 commented on August 16, 2024

how is performance?

Well, I was still reviewing the implementation before putting it in the techempower benchmark environment. I don't know if I'll have time today.

Also with this change ntex only compiles in nightly and I don't see a way to include a dependency according to the version of Rust.

from ntex.

trickster avatar trickster commented on August 16, 2024

@botika You can conditionally apply a feature that runs only on nightly.

from ntex.

mkvalor avatar mkvalor commented on August 16, 2024

@botika In case you haven't seen these, I found a couple of online answers about how to conditionally compile a feature only for nightly. They are from 2019, so the syntax may have evolved or changed (I haven't personally tried them):

https://stackoverflow.com/questions/59542378/conditional-compilation-for-nightly-vs-stable-rust-or-compiler-version
https://users.rust-lang.org/t/add-unstable-feature-only-if-compiled-on-nightly/27886

from ntex.

fakeshadow avatar fakeshadow commented on August 16, 2024

The benchmark is misleading. If you look at the source it compares multi-threaded tokio with thread per core glommio and monoio. Which is not how ntex work under the hood with tokio. Besides that the bench does not include abstraction over poll based api which ntex uses internally. And the cost of converting a completion future to a readiness future soundly can be high.(depend on the implementation)
From my personal test I don't find io_uring suitable for network io handling in Rust (yet).

from ntex.

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.