about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorSean McArthur <sean.monstar@gmail.com>2014-09-03 14:56:35 -0700
committerSean McArthur <sean.monstar@gmail.com>2014-11-07 17:49:40 -0800
commit7ddf8cb0e02549e6df7afe7e8486d735f8ee7eae (patch)
tree52efef8f11f9d34186d16cbc876cbe885bb2557e /src/rustllvm/RustWrapper.cpp
parent6ee56c9a5febad45865b7d41422b7ae4d996fcaa (diff)
downloadrust-7ddf8cb0e02549e6df7afe7e8486d735f8ee7eae.tar.gz
rust-7ddf8cb0e02549e6df7afe7e8486d735f8ee7eae.zip
libtime: alter strftime to use a TmFmt
The internals of strftime were converted to use a single formatter,
instead of creating and concatenating a bunch of small strings. This
showed ~3x improvement in the benches.

Also, since the formatted time may be going straight to a Writer, TmFmt
was introduced, and is returned from all formatting methods on Tm. This
allows the saving of another string allocation. Anyone wanting a String
can just call .to_string() on the returned value.

[breaking-change]
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions