about summary refs log tree commit diff
path: root/src/libextra/json.rs
AgeCommit message (Collapse)AuthorLines
2013-08-10Mass rename of .consume{,_iter}() to .move_iter()Erick Tryzelaar-3/+3
cc #7887
2013-08-05Use TreeMap's ord implementation for JsonAlex Crichton-18/+1
Closes #4430
2013-08-03remove obsolete `foreach` keywordDaniel Micay-10/+10
this has been replaced by `for`
2013-08-01std: Change `Times` trait to use `do` instead of `for`blake2-ppc-1/+1
Change the former repetition:: for 5.times { } to:: do 5.times { } .times() cannot be broken with `break` or `return` anymore; for those cases, use a numerical range loop instead.
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-11/+10
2013-07-27to_either + fixesErick Tryzelaar-10/+9
2013-07-23extra: switch json from hashmaps to treemapsGraydon Hoare-11/+11
2013-07-18hashmap: Remove .consume() has rename .consume_iter() to .consume()blake2-ppc-2/+1
Updated all users of HashMap, HashSet old .consume() to use .consume() with a for loop. Since .consume() takes the map or set by value, it needs awkward extra code to in librusti's use of @mut HashMap, where the map value can not be directly moved out.
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-47/+11
2013-07-14Noting that json.rs provides parsing as wellAustin King-1/+1
2013-07-11extra: add explicit ratchet-noise-percent option to benchmark ratchet, plus ↵Graydon Hoare-2/+2
a few test breaking fixes.
2013-07-11extra: add metrics ratchet to test driver.Graydon Hoare-1/+1
2013-07-11extra: add ToJson for TreeMap.Graydon Hoare-0/+11
2013-07-10Convert json Reader to iteratorsGary Linscott-40/+26
This is much faster for strings, and eventually when there is a buffered reader of some sort. Reading example.json 100 times before was around 1.18s. After: - reading from string 0.68s - reading from file 1.08s (extra time is all in io::Reader)
2013-07-08auto merge of #7612 : thestinger/rust/utf8, r=huonwbors-1/+1
2013-07-08auto merge of #7608 : glinscott/rust/json_perf, r=pcwaltonbors-7/+28
Avoids the overhead of read_char for every character. Benchmark reading example.json 10 times from https://code.google.com/p/rapidjson/wiki/Performance Before: 2.55s After: 0.16s Regression testing is already done by isrustfastyet.
2013-07-07remove some method resolve workaroundsDaniel Micay-1/+1
2013-07-05str: stop encoding invalid out-of-range `char`Daniel Micay-1/+1
2013-07-05Switch json parsing to read_chars for performanceGary Linscott-7/+28
Avoids the overhead of read_char for every character. Benchmark reading example.json 10 times from https://code.google.com/p/rapidjson/wiki/Performance Before: 2.55s After: 0.16s Regression testing is already done by isrustfastyet.
2013-07-04Implement consuming iterators for ~[], remove vec::{consume, ↵Huon Wilson-3/+2
consume_reverse, map_consume}.
2013-06-29Warning cleanupCorey Richardson-1/+1
2013-06-29Great renaming: propagate throughout the rest of the codebaseCorey Richardson-13/+11
2013-06-28librustc: Remove the broken overloaded assign-ops from the language.Patrick Walton-10/+12
They evaluated the receiver twice. They should be added back with `AddAssign`, `SubAssign`, etc., traits.
2013-06-25remove `each` from vec, HashMap and HashSetDaniel Micay-4/+4
2013-06-23vec: remove BaseIter implementationDaniel Micay-1/+1
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-21vec: replace `position` with `iter().position_`Daniel Micay-1/+1
2013-06-14add IteratorUtil to the preludeDaniel Micay-1/+0
2013-06-10std: convert str::reserve* to methods, and methodise str::push_*.Huon Wilson-11/+11
2013-06-10std: replace str::all/any fns and methods with iteratorsHuon Wilson-1/+1
2013-06-09std: remove each_char* fns and methods from str, replaced by iterators.Huon Wilson-2/+4
2013-06-01Remove all uses of `pub impl`. rs=stylePatrick Walton-3/+5
2013-05-30Remove copy bindings from patterns.Niko Matsakis-1/+1
2013-05-30libextra: Require documentation by defaultAlex Crichton-1/+19
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-1/+9
2013-05-28Silence various warnings throughout test modulesAlex Crichton-7/+7
2013-05-28Remove unnecessary allocations flagged by lintSeo Sanghyeon-8/+8
2013-05-23cleanup warnings from libextraErick Tryzelaar-124/+124
2013-05-22test: Update tests and import the prelude in some more places.Patrick Walton-0/+2
2013-05-22libextra: Rename the actual metadata names of libcore to libstd and libstd ↵Patrick Walton-0/+2
to libextra
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+1958
This only changes the directory names; it does not change the "real" metadata names.