Skip to content

Commit 306f5dd

Browse files
committed
Add comments
1 parent 4cdd7a1 commit 306f5dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/result.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ Result.prototype.addFields = function(fieldDescriptions) {
100100
this.fields.push(desc);
101101
var parser = types.getTypeParser(desc.dataTypeID, desc.format || 'text');
102102
this._parsers.push(parser);
103+
//this is some craziness to compile the row result parsing
104+
//results in ~60% speedup on large query result sets
103105
ctorBody += "\nthis['" + desc.name + "'] = " + inlineParsers(desc.dataTypeID, i, desc.format) + ';';
104106
}
105107
this.RowCtor = Function("parsers", "rowData", ctorBody);

0 commit comments

Comments
 (0)