Repository navigation
Commit 04e8c74
committed
api: deprecate byte classes and premultiply options
These options aren't really carrying their weight. In a future release,
aho-corasick will make both options enabled by default all the time with
the impossibility of disabling them. The main reason for this is that
these options require a quadrupling in the amount of code in this crate.
While it's possible to see a performance hit when using byte classes, it
should generally be very small. The improvement, if one exists, just
doesn't see worth it.
Please see #57 for more
discussion.
This is meant to mirror a similar decision occurring in regex-automata:
BurntSushi/regex-automata#7.1 parent c3136f1 commit 04e8c74
3 files changed
Lines changed: 23 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1005 | 1005 | | |
1006 | 1006 | | |
1007 | 1007 | | |
1008 | | - | |
1009 | | - | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | 1008 | | |
1021 | 1009 | | |
1022 | 1010 | | |
| |||
1681 | 1669 | | |
1682 | 1670 | | |
1683 | 1671 | | |
1684 | | - | |
| 1672 | + | |
1685 | 1673 | | |
1686 | 1674 | | |
1687 | 1675 | | |
| |||
1928 | 1916 | | |
1929 | 1917 | | |
1930 | 1918 | | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
1931 | 1923 | | |
1932 | 1924 | | |
1933 | 1925 | | |
| |||
1956 | 1948 | | |
1957 | 1949 | | |
1958 | 1950 | | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
1959 | 1955 | | |
1960 | 1956 | | |
1961 | 1957 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
739 | 739 | | |
740 | 740 | | |
741 | 741 | | |
| 742 | + | |
| 743 | + | |
742 | 744 | | |
743 | 745 | | |
744 | 746 | | |
| |||
747 | 749 | | |
748 | 750 | | |
749 | 751 | | |
| 752 | + | |
| 753 | + | |
750 | 754 | | |
751 | 755 | | |
752 | 756 | | |
| |||
755 | 759 | | |
756 | 760 | | |
757 | 761 | | |
| 762 | + | |
| 763 | + | |
758 | 764 | | |
759 | 765 | | |
760 | 766 | | |
| |||
830 | 836 | | |
831 | 837 | | |
832 | 838 | | |
| 839 | + | |
| 840 | + | |
833 | 841 | | |
834 | 842 | | |
835 | 843 | | |
| |||
839 | 847 | | |
840 | 848 | | |
841 | 849 | | |
| 850 | + | |
| 851 | + | |
842 | 852 | | |
843 | 853 | | |
844 | 854 | | |
| |||
848 | 858 | | |
849 | 859 | | |
850 | 860 | | |
| 861 | + | |
| 862 | + | |
851 | 863 | | |
852 | 864 | | |
853 | 865 | | |
| |||
0 commit comments