Code Monkey home page Code Monkey logo

cxx-http's People

Contributors

bengl avatar groundwater avatar heapwolf avatar jwerle avatar peters avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cxx-http's Issues

Explanation in README for performance vs node

I am super curious as to the details of why exactly the simple example in the README outperforms node.js. More than just the high level "it doesn't have to do as much".

I probably am not the only one that is wondering this after seeing the README at its current version.
So I was thinking that some short explanation could be added or linked to in the README for those that are curious.

I know that the performance section says Without any real statistical significance but I'm not sure what to make of that. Is there a test we could run that we could stand by and say is "statistically significant"?

If an explanation isn't warranted on the README inline maybe we could add a wiki page and link to it on the README?

If anybody has any pointers or links that shed light on this I could take a crack at it but I don't have any experience with libuv.

Feature: Mount route like in node.js

It would be awesome if you could use a regular expression or a plain url and mount it with to a callback.

hs.Mount("/hello", [](Request &req, Response &req) {
    res.setStatus(200);
    res.setHeader("Content-Type", "text/plain");
    res.setHeader("Connection", "keep-alive");
    res << req.method << " " << req.url << endl;
});

Tests

Would be nice to use something from the clib community for this.

Feature: One event loop per core

Maintain a master event loop that handles inbound connections. Then dispatch the connection to a slave loop which does the actual work. I think you might be able to achieve much better concurrency this way instead of using libuv's threadpool implementation.

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.