When I posted that comment I recalled a piece of Ruby code where replacing "+" for the equivalent of io.StringIO gave 1000x improvement. (Compressing / uncompressing document attachments in emails)
But then I thought some more about that, and you can treat the continuation of this thread as me retracting that claim. Most of the time + or % vs something more complex just doesn't matter.
Re: the first one is obviously bad in any language with immutable strings
Date: 2020-03-30 09:52 am (UTC)When I posted that comment I recalled a piece of Ruby code where replacing "+" for the equivalent of io.StringIO gave 1000x improvement. (Compressing / uncompressing document attachments in emails)
But then I thought some more about that, and you can treat the continuation of this thread as me retracting that claim. Most of the time + or % vs something more complex just doesn't matter.