Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 60385 invoked from network); 7 Aug 2010 14:36:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Aug 2010 14:36:44 -0000 Received: (qmail 92466 invoked by uid 500); 7 Aug 2010 14:36:44 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 92056 invoked by uid 500); 7 Aug 2010 14:36:41 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 92049 invoked by uid 99); 7 Aug 2010 14:36:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Aug 2010 14:36:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Aug 2010 14:36:38 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o77EaG1q018530 for ; Sat, 7 Aug 2010 14:36:16 GMT Message-ID: <29099526.213661281191776334.JavaMail.jira@thor> Date: Sat, 7 Aug 2010 10:36:16 -0400 (EDT) From: "Robert Muir (JIRA)" To: dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-1183) TRStringDistance uses way too much memory (with patch) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1183?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Muir updated LUCENE-1183: -------------------------------- Attachment: LUCENE-1183_3x.patch while I'm here, here is a little patch for 3x_branch to eliminate some usel= ess charAt bounds checks. > TRStringDistance uses way too much memory (with patch) > ------------------------------------------------------ > > Key: LUCENE-1183 > URL: https://issues.apache.org/jira/browse/LUCENE-1183 > Project: Lucene - Java > Issue Type: Improvement > Components: contrib/* > Affects Versions: 1.9, 2.0.0, 2.1, 2.2, 2.3 > Reporter: C=C3=A9drik LIME > Assignee: Robert Muir > Priority: Minor > Fix For: 3.0 > > Attachments: FuzzyTermEnum.patch, LUCENE-1183.patch, LUCENE-1183_= 3x.patch, TRStringDistance.java, TRStringDistance.patch > > Original Estimate: 0.17h > Remaining Estimate: 0.17h > > The implementation of TRStringDistance is based on version 2.1 of org.apa= che.commons.lang.StringUtils#getLevenshteinDistance(String, String), which = uses an un-optimized implementation of the Levenshtein Distance algorithm (= it uses way too much memory). Please see Bug 38911 (http://issues.apache.or= g/bugzilla/show_bug.cgi?id=3D38911) for more information. > The commons-lang implementation has been heavily optimized as of version = 2.2 (3x speed-up). I have reported the new implementation to TRStringDistan= ce. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org