Sean McArthur
9c1cd69ce7
optimized SipHash implementation
...
work started from @gereeter's PR: https://github.com/mozilla/rust/pull/13114
but adjusted bits
2014-04-15 15:57:04 -07:00
Liigo Zhuang
408f484b66
libtest: rename BenchHarness to Bencher
...
Closes #12640
2014-04-11 17:31:13 +08:00
Huon Wilson
def90f43e2
Fix tests. Add Vec<u8> conversion to StrBuf.
2014-04-11 10:55:30 +10:00
Patrick Walton
d8e45ea7c0
libstd: Implement StrBuf, a new string buffer type like Vec, and
...
port all code over to use it.
2014-04-10 22:10:10 +10:00
Alex Crichton
9a259f4303
Fix fallout of requiring uint indices
2014-04-02 15:56:31 -07:00
Alex Crichton
9a3d04ae76
std: Switch field privacy as necessary
2014-03-31 15:17:12 -07:00
Brian Anderson
451e8c1c61
Convert most code to new inner attribute syntax.
...
Closes #2569
2014-03-28 17:12:21 -07:00
Alex Crichton
3fb1ed0e04
rustc: Remove all usage of manual deref()
...
Favor using '*' instead
2014-03-22 08:48:34 -07:00
Daniel Micay
14f656d1a7
rename std::vec_ng -> std::vec
...
Closes #12771
2014-03-20 04:25:32 -04:00
Daniel Micay
ce620320a2
rename std::vec -> std::slice
...
Closes #12702
2014-03-20 01:30:27 -04:00
Eduard Burtescu
cdc18b96d6
Remove Rc's borrow method to avoid conflicts with RefCell's borrow in Rc<RefCell<T>>.
2014-03-13 14:21:45 +02:00
Palmer Cox
6d9bdf975a
Rename all variables that have uppercase characters in their names to use only lowercase characters
2014-03-04 21:23:36 -05:00
Patrick Walton
df40aeccdb
libstd: Add some functionality to Vec<T>
2014-03-01 22:40:52 -08:00
Erick Tryzelaar
adeb730c77
std: cut down on the memory usage of SipHasher
2014-02-27 20:41:00 -08:00
Erick Tryzelaar
72b5e30f6c
collections: allow HashMap to work with generic hashers
2014-02-27 19:02:52 -08:00
Erick Tryzelaar
ca6d512ec1
std: fix the hash doctest
2014-02-22 14:12:47 -08:00
Erick Tryzelaar
d223dd1e57
std: rewrite Hash to make it more generic
...
This patch merges IterBytes and Hash traits, which clears up the
confusion of using `#[deriving(IterBytes)]` to support hashing.
Instead, it now is much easier to use the new `#[deriving(Hash)]`
for making a type hashable with a stream hash.
Furthermore, it supports custom non-stream-based hashers, such as
if a value's hash was cached in a database.
This does not yet replace the old IterBytes-hash with this new
version.
2014-02-21 21:33:23 -08:00