summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2013-01-28add a FuzzyEq method that accepts an epsilon valueDaniel Micay-1/+20
2013-01-28Revert "Revert "Merge pull request #4633 from thestinger/treemap""Tim Chevalier-19/+10
This reverts commit d73077f82dc0f074f7abcb017bd73f4d70a685e9.
2013-01-28update FuzzyEq to explicit selfDaniel Micay-11/+10
2013-01-28fix std::cmp docstringDaniel Micay-1/+1
2013-01-28TidyBrian Anderson-6/+9
2013-01-28Greatly improve performance for TcpSocketBuf.readMichael Neumann-35/+77
For every call to the read() function the internal buffer was copied into a new buffer (minus the bytes copied into the result buffer). When the internal buffer is large enough, this severely affects performance, especially when read_line() is used which calls read_byte() (which calls read()) for each read byte. For line oriented I/O this wasn't all that bad, because the internal buffers usually never were very big. The effect is much more visible once the buffer grows larger. Now we always first look into the internal buffer and copy as many bytes as possible (and desired) into the result buffer. If we need more, we call the socket read function and use the result as the new internal buffer, then continue to copy from the (new) internal buffer, and so on.
2013-01-28Convert log(debug, ...) to debug!(...)Michael Neumann-69/+62
2013-01-28Merge remote-tracking branch 'thestinger/hashmap' into derivingBrian Anderson-6/+18
2013-01-28Merge remote-tracking branch 'codeblack08/treemap-ord' into derivingBrian Anderson-4/+82
2013-01-28get rid of LinearMap's find_copy methodDaniel Micay-6/+18
2013-01-28Remove bounds from type decl of smallintmapNiko Matsakis-2/+2
r=brson
2013-01-26std: implement lexicographical Ord for TreeMap/TreeSetCody Schroeder-4/+82
2013-01-26Merge remote-tracking branch 'brson/nocommupstream2'Brian Anderson-503/+558
2013-01-25Fix Option camel case in xfailed/ignored testsTyler Bindon-1/+1
2013-01-25Fix Option camel case in commentsTyler Bindon-9/+9
2013-01-25Merge remote-tracking branch 'brson/nocommupstream'Brian Anderson-503/+558
Conflicts: src/libcore/private.rs src/libcore/task/mod.rs src/libcore/task/spawn.rs src/libstd/net_tcp.rs src/libstd/uv_global_loop.rs src/libstd/uv_iotask.rs
2013-01-25Declare std::arc::unwrap to be pubCody Schroeder-1/+1
2013-01-25register snapshotsGraydon Hoare-58/+0
2013-01-25Revert "Merge pull request #4633 from thestinger/treemap"Tim Chevalier-10/+19
I was too hasty in merging -- this needs a snapshot. This reverts commit 4a7e1ab3745f519536ef6e0377427fc41e47f7c6, reversing changes made to e447521c1ca2dbead5b485ddc43060b282840817.
2013-01-25Merge pull request #4625 from thestinger/containerTim Chevalier-15/+6
more little container improvements
2013-01-25use mut function argument syntax in priority_queueDaniel Micay-8/+4
2013-01-25use mutable function argument syntax in treemapDaniel Micay-11/+6
2013-01-24Stop using oldcomm in uv_global_loop testsBrian Anderson-17/+18
2013-01-24std: Mop up Mac/Linux breakageTim Chevalier-2/+2
2013-01-24remove remaining is_not_empty functions/methodsDaniel Micay-9/+0
2013-01-24std: Fix broken Windows functionTim Chevalier-1/+1
2013-01-24replace ConstVector trait with the Container traitDaniel Micay-6/+6
2013-01-24Merge pull request #4613 from erickt/incomingTim Chevalier-418/+555
convert most of libcore and libstd to structs, work around tzset race
2013-01-24syntax/rustc: Less copyTim Chevalier-2/+2
2013-01-24time tests are racing on tzset, so merge the tests together.Erick Tryzelaar-12/+16
This attempts to fix issue #3327.
2013-01-24convert most of libstd over to structsErick Tryzelaar-406/+539
2013-01-24librustc: Allow `&mut` to be loaned; allow `self` to be loaned; make `&mut` ↵Patrick Walton-74/+136
loanable to `&`. r=nmatsakis
2013-01-24librustc: Disallow `&mut` loans from overlapping with any other loansPatrick Walton-3/+9
2013-01-24librustc: Make C functions unsafePatrick Walton-3/+7
2013-01-24Merge pull request #4616 from thestinger/priority_queueTim Chevalier-6/+3
remove is_not_empty method from PriorityQueue
2013-01-24remove is_not_empty method from PriorityQueueDaniel Micay-6/+3
2013-01-24remove old LinearMap constructorDaniel Micay-2/+2
2013-01-23Merge pull request #4594 from thestinger/mapTim Chevalier-169/+46
more work on the map trait and TreeMap/LinearMap
2013-01-23fix testsDaniel Micay-1/+1
2013-01-23core: Remove private::chan_from_global_ptr. #3915Brian Anderson-2/+2
2013-01-23std: Convert uv_global_loop to use pipesBrian Anderson-128/+154
2013-01-23switch LinearMap to current constructor conventionDaniel Micay-17/+17
2013-01-23libsyntax: Remove `fn() unsafe { ... }`. r=graydonPatrick Walton-1596/+1817
2013-01-23improve hashmap/treemap documentationDaniel Micay-3/+2
2013-01-23add find method to the core::container::Map traitDaniel Micay-20/+20
2013-01-23rename hashmap find_ref/get_ref -> find/getDaniel Micay-3/+3
2013-01-23rename hashmap find/get -> find_copy/get_copyDaniel Micay-9/+3
2013-01-23get rid of the std::map::Map LinearMap implDaniel Micay-116/+0
This legacy trait needs to be dropped in order to migrate to core::container::Map, which doesn't require @ and Copy, and will make proper use of borrowed pointers.
2013-01-23rename send_map to hashmapDaniel Micay-7/+7
This makes the module much more discoverable, and is in line with the 'treemap' naming.
2013-01-23Merge pull request #4596 from Trinick/tomutrenameTim Chevalier-21/+22
core: Rename to_mut and from_mut to cast_to_mut and cast_from_mut