{"action":"created","issue":{"url":"https://api.github.com/repos/petkaantonov/bluebird/issues/676","labels_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/676/labels{/name}","comments_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/676/comments","events_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/676/events","html_url":"https://github.com/petkaantonov/bluebird/issues/676","id":91504566,"number":676,"title":"Explicit switch-off for the DEV mode.","user":{"login":"vitaly-t","id":5108906,"avatar_url":"https://avatars.githubusercontent.com/u/5108906?v=3","gravatar_id":"","url":"https://api.github.com/users/vitaly-t","html_url":"https://github.com/vitaly-t","followers_url":"https://api.github.com/users/vitaly-t/followers","following_url":"https://api.github.com/users/vitaly-t/following{/other_user}","gists_url":"https://api.github.com/users/vitaly-t/gists{/gist_id}","starred_url":"https://api.github.com/users/vitaly-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitaly-t/subscriptions","organizations_url":"https://api.github.com/users/vitaly-t/orgs","repos_url":"https://api.github.com/users/vitaly-t/repos","events_url":"https://api.github.com/users/vitaly-t/events{/privacy}","received_events_url":"https://api.github.com/users/vitaly-t/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-06-27T19:24:00Z","updated_at":"2015-06-27T22:34:08Z","closed_at":"2015-06-27T22:22:58Z","body":"Please add an option to explicitly switch off Long Stack Traces and everything debugger-related in the library, i.e. to make it think that `NODE_ENV = production`.\r\n\r\nThe reason it is needed is because of all promise libraries out there, this one goes an extra mile tracking everything for debugging, and as a result the performance degrades dramatically, x10 times or worse, and tons of extra memory hogged in, which in many cases makes the library unusable in `development` mode.\r\n\r\nHaving to switch over to `production` every time is way too awkward. For example, I use over 10 packages for a project, all of which do useful stuff for `development` mode, while Bluebird just chokes. I need to keep using `development` mode here, but I can't sit around waiting for Bluebird to do its job because of it, plus it eats so much memory, my NodeJS process dies.\r\n\r\nObviously, I'm dealing with intensive use of promises here, 1m - 10m being executed frequently. But I do believe you guys care about performance a great deal, so it just makes sense to allow use of your library as intended, without having to flip the environment mode all the time.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/petkaantonov/bluebird/issues/comments/116163663","html_url":"https://github.com/petkaantonov/bluebird/issues/676#issuecomment-116163663","issue_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/676","id":116163663,"user":{"login":"petkaantonov","id":829734,"avatar_url":"https://avatars.githubusercontent.com/u/829734?v=3","gravatar_id":"","url":"https://api.github.com/users/petkaantonov","html_url":"https://github.com/petkaantonov","followers_url":"https://api.github.com/users/petkaantonov/followers","following_url":"https://api.github.com/users/petkaantonov/following{/other_user}","gists_url":"https://api.github.com/users/petkaantonov/gists{/gist_id}","starred_url":"https://api.github.com/users/petkaantonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petkaantonov/subscriptions","organizations_url":"https://api.github.com/users/petkaantonov/orgs","repos_url":"https://api.github.com/users/petkaantonov/repos","events_url":"https://api.github.com/users/petkaantonov/events{/privacy}","received_events_url":"https://api.github.com/users/petkaantonov/received_events","type":"User","site_admin":false},"created_at":"2015-06-27T22:34:08Z","updated_at":"2015-06-27T22:34:08Z","body":"It's not a dramatic slow down, in fact you should not see any difference for a task like inserting rows to database"}}