Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Upgrade Rust #6

Merged
merged 32 commits into from
Jun 4, 2014
Merged

Upgrade Rust #6

merged 32 commits into from
Jun 4, 2014

Conversation

metajack
Copy link

@metajack metajack commented Jun 1, 2014

This is just a merge from upsream

lifthrasiir and others added 30 commits May 10, 2014 12:32
this should make the whole decoder business easy to maintainable.
currently this change is available to Korean and Japanese codecs.
this also keeps up with the recent WHATWG spec changes, including
a merge of GBK18030 with GB18030.
previously it didn't depend on the encoder state at all, resulting in
the incorrect output when the encoder has a complex state.
this directly affects ISO 2022 encodings in the development.
- the last codec error is now stored in the intermediate context,
  so the state machine can use a code like `ctx.err(..), S1(ctx)`.
- fixed a performance regression due to the decoder generalization.
  the decoder performance should be on par with hand-written one
  (less than 10% difference) with `--opt-level=3 -Z lto` rustc flags.
this also tries to fix a possible interference issue between
the benchmark and aggressive optimization passes.
this greatly improves backward mapping performance, with improvements
ranging from 50% to 400%. this also allows for the exact accounting of
the binary size overhead.
Rebuild when external dependencies change
this also changes names of Macintosh encodings from `encoding::all`
to stay away from names assigned by WHATWG Encoding Standard.
@metajack
Copy link
Author

metajack commented Jun 4, 2014

r? @SimonSapin

SimonSapin added a commit that referenced this pull request Jun 4, 2014
@SimonSapin SimonSapin merged commit d6dc8d0 into servo Jun 4, 2014
@SimonSapin SimonSapin deleted the rustup-20140528 branch June 4, 2014 22:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants