Commit Graph

112 Commits

Author SHA1 Message Date
Sergey "Shnatsel" Davidoff f401915be2 Merge remote-tracking branch 'origin/master' into tinyvec 2020-03-16 00:57:27 +01:00
Sergey "Shnatsel" Davidoff 432074711b Improve comment 2020-03-16 00:37:04 +01:00
Sergey "Shnatsel" Davidoff 3058939b1f Update to newer TinyVec 2020-03-16 00:22:48 +01:00
Manish Goregaokar a303f6f448 Publish 0.1.12 2020-01-21 14:34:56 -08:00
Manish Goregaokar d257973689 Merge pull request #52 from clintfred/master
Bump to smallvec 1.1.0
2020-01-21 14:24:18 -08:00
Clint Frederickson 0274330fea bump to smallvec 1.1.0 2020-01-21 15:15:16 -07:00
Sergey "Shnatsel" Davidoff 09fdcc2b81 Switch from SmallVec to 100% safe TinyVec 2020-01-13 19:56:13 +01:00
Manish Goregaokar 1e2049e4f9 Merge pull request #49 from unicode-rs/bump
Bump to 0.1.11
2019-11-22 08:31:48 -08:00
Manish Goregaokar ecadf7d44c Bump to 0.1.11 2019-11-22 08:31:00 -08:00
Manish Goregaokar a29396492b Add #[allow(ellipsis_inclusive_range_patterns)] to unicode.py 2019-11-22 08:30:05 -08:00
Manish Goregaokar 68a82a383f Merge pull request #48 from kentfredric/attempt-4
Migrate normalization tests to test/ to simplify pruning tests during shipping.
2019-11-22 08:28:45 -08:00
Manish Goregaokar df6b42c95d Merge pull request #47 from unicode-rs/version-bump
Bump to 0.1.10
2019-11-21 13:45:10 -08:00
Manish Goregaokar ad8c48e4bf Bump to 0.1.10 2019-11-21 13:43:19 -08:00
Kent Fredric 9ceca81f2f Add travis glue to test built package too 2019-11-20 04:09:17 +13:00
Kent Fredric 9f9a1cf94c Only strip tests/ in Cargo.toml
Leaving integrated bundled tests working.
2019-11-20 04:07:04 +13:00
Kent Fredric 9ab2fd64b9 Tidy up test layout
- Unify all tests/ into a single file to reduce the number of output
  targets during `cargo test`
- This also avoids double-compiling the normalization_tests.rs
- Move normalization_tests.rs to be a child of tests/data/ to avoid
  getting compiled as a test unit, and further removing useless output
  from cargo test
2019-11-20 04:04:55 +13:00
Kent Fredric beab8d66a0 Move "normalization" test data and dependent tests all into tests/
Leaves all other tests in place.

Provides a #[doc(hidden)] shim for accessing/using otherwise private
members from tests/
2019-11-20 03:57:38 +13:00
Manish Goregaokar dc5e3889d7 Merge pull request #46 from messense/master
Bump smallvec version to 1.0
2019-11-08 19:36:44 -08:00
messense f77c1ee57d Bump smallvec version to 1.0
See https://github.com/servo/rust-smallvec/pull/175 for changelog
2019-11-09 11:29:19 +08:00
Sujay Jayakar f92794def3 Merge pull request #45 from unicode-rs/bump
Bump version to 0.1.9
2019-11-06 13:32:03 -08:00
Manish Goregaokar 832048773d Bump version to 0.1.9 2019-11-06 07:18:56 -08:00
Manish Goregaokar ef4d6a69c6 Merge pull request #42 from trivikr/allow_ellipsis_inclusive_range_patterns
Allows ellipsis_inclusive_range_patterns
2019-10-13 19:48:38 -07:00
Kamat, Trivikram e1c602752f Allows ellipsis_inclusive_range_patterns
Refs: https://github.com/unicode-rs/unicode-normalization/issues/41
2019-10-13 12:42:06 -07:00
Manish Goregaokar e4c2de8f43 Merge pull request #37 from raphlinus/master
Use minimal perfect hashing for lookups
2019-04-16 11:04:53 -07:00
Raph Levien a6db7c0256 Move lookups into own module 2019-04-16 10:56:44 -07:00
Raph Levien 4e56dbc9dd One more comment 2019-04-16 10:44:30 -07:00
Raph Levien 9aacd59532 Move code out of tables
The code has been moved out of the tables module into perfect_hash, and
there is a bit more explanation in comments.
2019-04-16 10:42:11 -07:00
Raph Levien 93d8afb900 Use perfect hashing for compose lookup 2019-04-09 17:51:03 -07:00
Raph Levien df37994166 Use perfect hashing for decomposition also 2019-04-09 17:20:27 -07:00
Raph Levien b68dbec11f More lookups moved to perfect hashing 2019-04-09 16:46:28 -07:00
Raph Levien 274b267525 Use minimal perfect hashing for combining class lookup 2019-04-09 12:26:24 -07:00
Raph Levien 6407e5f127 Update unicode script to Python 3 2019-04-09 10:43:25 -07:00
Sujay Jayakar 35cc77d8ad Bump version to 0.1.8 2019-01-21 13:02:48 -08:00
Sujay Jayakar 32f859c523 Merge pull request #35 from djudd/smallvec
Use Smallvec in decomposition & recomposition
2019-01-21 11:32:30 -08:00
Sujay Jayakar d9e05260c6 Merge branch 'master' into smallvec 2019-01-21 11:22:08 -08:00
David Judd b114982681 Add comment 2019-01-17 08:41:47 -08:00
David Judd c6524d31d4 Use fuse 2019-01-17 08:28:15 -08:00
David Judd cc81a58409 Revert "restore done field to Decompositions"
This reverts commit 099fef3b72.
2019-01-17 08:25:11 -08:00
David Judd 099fef3b72 restore done field to Decompositions 2019-01-15 21:31:18 -08:00
Sujay Jayakar a09e329414 Merge pull request #31 from djudd/no-package-test-code
Use cargo exclude for tests
2019-01-15 16:15:22 +05:30
David Judd cae615d215 Use cargo exclude 2019-01-14 20:27:50 -08:00
Sujay Jayakar e03d61cce8 Merge pull request #36 from djudd/compatibility-quick-checks
Add quick check implementations for NFKC & NFKD
2019-01-14 22:40:37 +05:30
David Judd 5685166427 Add quick check implementations for NFKC & NFKD 2019-01-12 14:44:53 -08:00
David Judd 70741bd31d Use SmallVec in place of VecDeque in recompose 2019-01-12 11:01:54 -08:00
David Judd 29e7a0ba40 Use SmallVec in place of Vec in decompose & avoid remove(0) 2019-01-12 11:01:22 -08:00
David Judd 79e9942f2a Add smallvec 2019-01-12 10:59:23 -08:00
David Judd 5ae55400d9 More benchmarks 2019-01-12 10:58:41 -08:00
Manish Goregaokar 534e19eed8 Merge pull request #34 from dotdash/improv_codegen
Generate code that is friendlier to rustc's item_bodies_checking
2019-01-08 09:35:49 -08:00
Björn Steinbrink 41914c5d30 Generate code that is friendlier to rustc's item_bodies_checking
Having the Some() constructor in each match arm body puts extras stress
on rustc's item_bodies_checking pass. We can work around that by moving
the Some() constructor around the match, and directly returning None
from the default arm, which is the only one that generates a None value.

On my box, this almost cuts the time spent in item_bodies_checking in
half, going from about 8.7s to about 4.6s, and reduces the complete
compile time from about 13s to about 9s, so about a third less.

There are no changes in performance in `cargo bench`.

Note that doing the same for the composition_table() function does not
yield any compile time wins, but would cause a performance regression.

cc #29
2019-01-08 17:02:41 +01:00
Manish Goregaokar 3a99765a62 Merge pull request #27 from dbrgn/ci
CI: Test on stable, nightly and 1.21
2018-06-14 14:47:20 -07:00