On Friday, 22 June 2018 at 21:37:07 UTC, Walter Bright wrote:
  text
  begat textImpl
  begat to
  begat toImpl
  begat toStr
  begat formatValue
  begat formatValueImpl
  begat put
  begat doPut
  begat Appender.put
  begat Appender.put

Hmm, this looks suboptimal for more than one reason. Wouldn't `text` benefit from using an appender in its implementation, rather than letting every invocation of `to` have its own? I.e. there ought to be one Appender per `text` invocation, rather than per one `text` argument.

textImpl seems to already have a branch for >1 arguments, but it still invokes to!S(arg) for them.

Reply via email to