Add a header command to dicttool.
This will allow to greatly improve the performance of the metadata-generating files, as they won't have to wait for the info command to read the entire dictionary when the header is all we need. Also add tests, and while we're at it, use the seed as intended to enable reproducible tests. Change-Id: I0ba79ef62f0292b23e63aed57ff565bb102281a2
Showing
- tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java 70 additions, 7 deletions...tmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
- tools/dicttool/src/com/android/inputmethod/latin/dicttool/BinaryDictOffdeviceUtils.java 22 additions, 10 deletions.../inputmethod/latin/dicttool/BinaryDictOffdeviceUtils.java
- tools/dicttool/src/com/android/inputmethod/latin/dicttool/CommandList.java 1 addition, 0 deletions...c/com/android/inputmethod/latin/dicttool/CommandList.java
- tools/dicttool/src/com/android/inputmethod/latin/dicttool/Header.java 69 additions, 0 deletions...ol/src/com/android/inputmethod/latin/dicttool/Header.java
Loading
Please register or sign in to comment