Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 51137 invoked from network); 22 Mar 2011 17:19:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Mar 2011 17:19:44 -0000 Received: (qmail 31337 invoked by uid 500); 22 Mar 2011 17:19:44 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 31058 invoked by uid 500); 22 Mar 2011 17:19:44 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 31049 invoked by uid 99); 22 Mar 2011 17:19:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2011 17:19:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2011 17:19:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2F9934237E for ; Tue, 22 Mar 2011 17:19:07 +0000 (UTC) Date: Tue, 22 Mar 2011 17:19:07 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: <749482430.4138.1300814347191.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1675978417.13629.1300539989565.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (NET-381) Parsing is inefficient, as it parses everything twice MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/NET-381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebb updated NET-381: --------------------- Component/s: FTP > Parsing is inefficient, as it parses everything twice > ----------------------------------------------------- > > Key: NET-381 > URL: https://issues.apache.org/jira/browse/NET-381 > Project: Commons Net > Issue Type: Improvement > Components: FTP > Reporter: Sebb > > The default preParse() method - FTPFileEntryParserImpl.preParse() - parses every entry, and removes any that do not parse. > The entries are later parsed again to produce the main output. > It would be more efficient to weed out null entries once after parsing. > The preParse() method should be reserved for cases where it is strictly necessary, e.g. VMSVersioningFTPEntryParser and MVSFTPEntryParser which already override the default implementation. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira