You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
stdlib/json.rs is written in a very inefficient style #1369
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.I-slowIssue: Problems and improvements with respect to performance of generated code.
It takes a very Haskell approach to parsing, cutting off piece by piece of the parsed string, and thus constantly allocating new strings. The functional style can be preserved by passing around a (@str, uint) pair with the offset as well as the string. But it'd probably be better to make it act on a stream abstraction (as in our io module), so that you can parse directly from files and sockets as well.
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.I-slowIssue: Problems and improvements with respect to performance of generated code.
Activity
brson commentedon Feb 29, 2012
@erickt Do you think your recent changes fix this issue?
kud1ing commentedon Feb 29, 2012
I am positive @erickt resolved this, since
from_stris now implemented asfrom_reader(io::string_reader(s))Bump to 0.6.0 (rust-lang#1369)
Add an "is" and rearange "We next" to "Next, we" (rust-lang#1369)
Add an "is" and rearange "We next" to "Next, we" (rust-lang#1369)
Auto merge of rust-lang#137022 - jieyouxu:bump-bootstrap-cc-cmake, r=…
Merge rust-lang#1369