From 306f5dd49392b2086eaae75197b21c5114e407e7 Mon Sep 17 00:00:00 2001 From: Brian Carlson Date: Wed, 7 Aug 2013 15:35:07 -0500 Subject: [PATCH] Add comments --- lib/result.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/result.js b/lib/result.js index bd08b515..194862b2 100644 --- a/lib/result.js +++ b/lib/result.js @@ -100,6 +100,8 @@ Result.prototype.addFields = function(fieldDescriptions) { this.fields.push(desc); var parser = types.getTypeParser(desc.dataTypeID, desc.format || 'text'); this._parsers.push(parser); + //this is some craziness to compile the row result parsing + //results in ~60% speedup on large query result sets ctorBody += "\nthis['" + desc.name + "'] = " + inlineParsers(desc.dataTypeID, i, desc.format) + ';'; } this.RowCtor = Function("parsers", "rowData", ctorBody);