GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Fix auth performance degradation in >= v0.14.0 / cache Google auth client per config · Issue #674 · googleapis/google-cloud-node Closed DescriptionThe v0.14.0 release of this module included a change in the underlying dependency used for Google authentication, from the A super-simple example is shown below, which directly calls into var util = require('./node_modules/gcloud/lib/common/util.js') var config = { keyFile: "[redacted]", projectId: "[redacted]", scopes: [ 'https://www.googleapis.com/auth/devstorage.full_control' ] }; var reqOpts = { method: 'GET', qs: null, uri: '[redacted]', json: true }; var makeAuthorizedRequest; if (util.makeAuthorizedRequestFactory) { // >= v0.14.0 makeAuthorizedRequest = util.makeAuthorizedRequestFactory(config) } else { // v0.13.2 makeAuthorizedRequest = util.makeAuthorizedRequest(config) } var n = 100; function next() { if (n > 0) { run(function() { setTimeout(next, 0); }); } else { process.exit(); } } function run(cb) { if (n > 0) { makeAuthorizedRequest(reqOpts, function(err, resp, req) { if (err) { console.error(err); process.exit(1); } cb(); }) } } next(); This difference is fully accounted for through additional time spent in This is caused by creating a new instance of I'll follow-up with a PR addressing this issue in the next 24 hours. Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |