datamapper / do

DataObjects
147 stars 74 forks source link

wrapped debug() with isDebug() so statementToString() is only called when needed. #40

Closed patcheng closed 11 years ago

patcheng commented 11 years ago

Was doing performance testing, data_objects.Command.execute_reader() was spending a lot of time in statementToString().

Looks like it's only called to provide debug() information. So wrapped around a newly created isDebug() method.