GitHub user KellenSunderland reopened a pull request: https://github.com/apache/incubator-joshua/pull/65
This PR is a first attempt to minimize ngram array copies by utilizing DirectBuffers. This is a work in progress but posted so that @mjpost and @kpu can review (and do some speed comparisons). You can merge this pull request into a Git repository by running: $ git pull https://github.com/KellenSunderland/incubator-joshua master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-joshua/pull/65.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #65 ---- commit 9ea7eebf0164d1676f633b441bd952eaa20b0760 Author: Kellen Sunderland <kell...@amazon.com> Date: 2016-09-15T17:06:04Z Convert to a DirectBuffer to transfer ngrams during probRule commit 3ba83f84e8258a784fcef509fc9b158d44f15c66 Author: Kellen Sunderland <kell...@amazon.com> Date: 2016-09-15T17:31:21Z Converted estimateRule to also make use of DirectBuffer. Reduced number of array copies in probRule. Removed sentence from estimate method signature (as it was unused). ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---