https://github.com/mondeja/unic-langid-impl-dummy-sorting
https://github.com/mondeja/unic-langid-impl-dummy-sorting
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mondeja/unic-langid-impl-dummy-sorting
- Owner: mondeja
- Created: 2024-08-25T23:24:30.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-08-25T23:56:34.000Z (about 1 year ago)
- Last Synced: 2025-02-13T20:17:55.750Z (8 months ago)
- Language: Rust
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dummy sorting implementation for unic-langid-impl's `Variant` type
- Previous results (`.dedup()` + `.sort_unstable()`): *dominators-with-sort.txt* (13057 bytes)
- Results after commenting out `.sort_unstable()`: *dominators-without-sort.txt* (3595 bytes)
- Results after patch: *dominators-after-patch.txt* (3439 bytes)Search for `unic_langid_impl::LanguageIdentifier::from_bytes` in the files.
## How to reproduce
1. Clone the unic-locale repository and put in the same directory as this repository.
1. Install [trunk.rs](https://trunkrs.dev/) with `cargo install trunk`.
1. Install [twiggy](https://github.com/rustwasm/twiggy) with `cargo install twiggy`.
1. Run `trunk build --release`.
1. Get the name of the WASM file generated at *dist/*.
1. Run `twiggy dominators dist/`Note that Trunk is building the WASM file in release mode but without demangling the symbols. See `data-keep-debug data-wasm-opt="0" data-no-demangle` in *index.html*.