Git Product home page Git Product logo

Comments (3)

mcavage avatar mcavage commented on May 1, 2024

meh, not fixing.

from node-restify.

tjarratt avatar tjarratt commented on May 1, 2024

If you're making changes to request/response 's prototype, doesn't that mean you could conflict with other libraries that do the same thing? I realize that using express with restify is probably something no sane person should ever do, but I could imagine a scenario, say, where a testrunner for several projects (some of which use Restify, some of which use Express) would run into problems because different tests would require express and restify and mess up the prototype.

Full disclosure: the "hypothetical" scenario described above is actually a problem I'm currently trying to solve.

from node-restify.

mcavage avatar mcavage commented on May 1, 2024

Yes, it does. Unfortunately, this is the cost of v8. Once upon a time, I
did the "right thing" and wrapped it all, using getters/setters on the
properties. restify was 15-20 times slower than now (a trivial echo
server peaked at about 250-300 requests/second). So the short is, it's
lame, and it sucks, but it is what it is, and this just what it has to be
:.

On Thu, May 2, 2013 at 5:38 PM, Tim Jarratt [email protected]:

If you're making changes to request/response 's prototype, doesn't that
mean you could conflict with other libraries that do the same thing? I
realize that using express with restify is probably something no sane
person should ever do, but I could imagine a scenario, say, where a
testrunner for several projects (some of which use Restify, some of which
use Express) would run into problems because different tests would require
express and restify and mess up the prototype.

Full disclosure: the "hypothetical" scenario described above is actually a
problem I'm currently trying to solve.


Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-17373368
.

from node-restify.

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.