Add comments

This commit is contained in:
Brian Carlson 2013-08-07 15:35:07 -05:00
parent 4cdd7a116b
commit 306f5dd493

View File

@ -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);