[New-bugs-announce] [issue26118] String performance issue using single quotes
poostenr
report at bugs.python.org
Thu Jan 14 17:47:44 EST 2016
New submission from poostenr:
There appears to be a significant performance issue between the following two statements. Unable to explain performance impact.
s = "{0},".format(columnvalue) # fast
s = "'{0}',".format(columnvalue) # ~30x slower
So far, no luck trying to find other statements to improve performance, such as:
s = "\'{0}\',".format(columnvalue)
s = "'" + "%s" %(columnvalue) + "'"+","
s = "{0}{1}{2},".format("'",columnvalue,"'")
----------
components: Windows
messages: 258243
nosy: paul.moore, poostenr, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: String performance issue using single quotes
type: performance
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26118>
_______________________________________
More information about the New-bugs-announce
mailing list