aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-02-15Merge pull request #36 from Marcondiro/masterupstream-masterManish Goregaokar
Bump Unicode to version 15.1.0, regenerate tables
2024-02-15Update ci.ymlManish Goregaokar
2024-02-15Update ci.ymlManish Goregaokar
2024-02-15Update ci.ymlManish Goregaokar
2024-02-15Update ci.ymlManish Goregaokar
2024-02-15Update ci.ymlManish Goregaokar
2024-02-15Bump Unicode to version 15.1.0, regenerate tablesMarcondiro
2022-12-16Merge pull request #35 from atouchet/readmeManish Goregaokar
Fix build status badge and update Readme
2022-12-16Fix build status badge and update ReadmeAlex Touchet
2022-09-15Merge pull request #34 from crlf0710/masterManish Goregaokar
Update to Unicode 15 and Bump version to 0.2.4
2022-09-16Update to Unicode 15 and Bump version to 0.2.4Charles Lew
2022-05-16Merge pull request #31 from mehmetoguzderin/oguz-20220515-preserve-staticManish Goregaokar
Preserve static gains
2022-05-15Preserve static gainsMehmet Oguz Derin
2022-05-15Merge pull request #29 from nnethercote/make-tables-staticManish Goregaokar
Make the tables `static`.
2022-05-11Make the tables `static`.Nicholas Nethercote
Because it reduces the size of `.rlib` and `.rmeta` files by about 40KB. I tested this on Linux with a tiny program that uses `unicode-xid`, which looks like this: ``` use unicode_xid::UnicodeXID; fn main() { println!( "{} {}", UnicodeXID::is_xid_start('\u{aabb}'), UnicodeXID::is_xid_continue('\u{aabb}') ); } ``` Here are the artifact sizes. ``` // debug artifacts w/pub const 249374 libunicode_xid-75c27e72601d21ef.rlib 193130 libunicode_xid-75c27e72601d21ef.rmeta 542 unicode_xid-75c27e72601d21ef.d 3780856 xid_user-75e09ca22117d2ec 177 xid_user-75e09ca22117d2ec.d // debug artifacts w/static 204790 libunicode_xid-75c27e72601d21ef.rlib 147433 libunicode_xid-75c27e72601d21ef.rmeta 542 unicode_xid-75c27e72601d21ef.d 3781592 xid_user-75e09ca22117d2ec 177 xid_user-75e09ca22117d2ec.d // release artifacts w/pub const 209082 libunicode_xid-fc6c941385d516f3.rlib 193860 libunicode_xid-fc6c941385d516f3.rmeta 548 unicode_xid-fc6c941385d516f3.d 3750768 xid_user-8544a1e3e820f27e 181 xid_user-8544a1e3e820f27e.d // release artifacts w/static 163386 libunicode_xid-fc6c941385d516f3.rlib 148164 libunicode_xid-fc6c941385d516f3.rmeta 548 unicode_xid-fc6c941385d516f3.d 3750768 xid_user-8544a1e3e820f27e 181 xid_user-8544a1e3e820f27e.d ``` Effect on compile times is minimal, well within the noise: ``` // debug timings w/pub const Benchmark 1: cargo build Time (mean ± σ): 865.9 ms ± 42.2 ms [User: 773.5 ms, System: 283.9 ms] Range (min … max): 787.7 ms … 933.0 ms 10 runs // debug timings w/static Benchmark 1: cargo build Time (mean ± σ): 873.0 ms ± 34.7 ms [User: 794.4 ms, System: 266.7 ms] Range (min … max): 821.6 ms … 923.0 ms 10 runs // release timings w/pub const Benchmark 1: cargo build --release Time (mean ± σ): 882.2 ms ± 49.4 ms [User: 757.3 ms, System: 274.6 ms] Range (min … max): 793.2 ms … 946.5 ms 10 runs // release timings w/static Benchmark 1: cargo build --release Time (mean ± σ): 883.3 ms ± 63.1 ms [User: 767.9 ms, System: 267.4 ms] Range (min … max): 785.7 ms … 970.9 ms 10 runs ``` Overall, it seems worth doing due to the disk space savings, because `unicode-xid` is such a widely used crates (being used by `proc-macro2` and `syn`).
2022-05-02Publish 0.2.3Manish Goregaokar
Fixes #28
2022-04-08Merge pull request #27 from Boshen/masterManish Goregaokar
Update to Unicode 14.0.0
2022-04-08Update to Unicode 14.0.0Boshen
2021-10-01Merge pull request #25 from dtolnay-contrib/rust-versionManish Goregaokar
Declare minimum Rust version in Cargo metadata
2021-10-02Declare minimum Rust version in Cargo metadataDavid Tolnay
2021-10-01Merge pull request #24 from dtolnay-contrib/actionsManish Goregaokar
Convert CI from Travis to GitHub Actions
2021-10-02Convert CI from Travis to GitHub ActionsDavid Tolnay
2021-04-29Add self to ownersManish Goregaokar
2021-04-29Merge pull request #22 from epage/bumpManish Goregaokar
Publish 0.2.2
2021-04-28Publish 0.2.2Ed Page
2021-04-28Merge pull request #21 from epage/benchManish Goregaokar
Add basic benchmark
2021-04-28Add basic benchmarkEd Page
This is based on a one-off benchmark from #13
2021-04-28Merge pull request #20 from epage/fast-pathManish Goregaokar
Add ASCII fast path from rust-lang
2021-04-28Add ASCII fast path from rust-langEd Page
See rust-lang/rust's `src/librustc_lexer/src/lib.rs` Idea came from #13
2020-06-23Publish 0.2.1Manish Goregaokar
2020-06-08Merge pull request #18 from FreeMasen/masterManish Goregaokar
Update to 13.0.0
2020-05-27Update to 13.0.0Robert Masen
2020-04-30Remove version from readmeManish Goregaokar
2020-04-30Remove version from docsManish Goregaokar
2020-02-06Merge pull request #16 from nnethercote/speed-up-bsearch_range_tableManish Goregaokar
Speed up `bsearch_range_table`.
2020-02-07Speed up `bsearch_range_table`.Nicholas Nethercote
The comparison function used for the binary search is sub-optimal, because it looks for an `Equal` result first, even though that is the least common result (happening 0 or 1 times per search). This commit changes the comparison function to look for `Equals` last. As a result, the number of tests executed within the comparison function is reduced: - On a `Greater` result: 2 tests --> 1 test - On a `Less` result: 3 tests --> 2 tests - On an `Equals` result (next most common): 2 tests --> 2 tests
2020-01-21Merge pull request #15 from chills42/masterManish Goregaokar
Upgrades the unsafe_code lint from deny to forbid
2020-01-15Adds a fix for bench testsCraig Hills
2020-01-15Upgrades the unsafe_code lint from deny to forbidCraig Hills
This simply avoids the possibility of overriding the lint rule later in the process. It also helps for tool usage, such as cargo geiger, where it will now show the library at a higher safety level.
2019-08-03Merge pull request #9 from ZackPierce/exhaustive_testsManish Goregaokar
Prove the API does not panic for all chars
2019-08-02Remove exhaustive tests for intentionally invalid charsZachary Pierce
2019-07-25Merge pull request #12 from matklad/v0.1.1Manish Goregaokar
V0.2.0
2019-07-25use the correct feature name for the new nightlyAleksey Kladov
2019-07-25publish 0.2.0Aleksey Kladov
2019-07-25add CI badgesAleksey Kladov
2019-07-25exclude irrelevant files from publishingAleksey Kladov
2019-07-25Cleanup Cargo.tomlAleksey Kladov
- use new syntax for license - use default exclude rules
2019-07-25Merge pull request #11 from matklad/new-unicodeManish Goregaokar
update to unicode 12.1.0
2019-07-21update to unicode 12.1.0Aleksey Kladov
2019-07-15Merge pull request #10 from ZackPierce/fix_bench_and_cleanupManish Goregaokar
Fix CI build by updating feature associated with 'bench' feature