Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D316C5E3 for ; Fri, 1 Jun 2012 17:28:24 +0000 (UTC) Received: (qmail 47723 invoked by uid 500); 1 Jun 2012 17:28:23 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 47501 invoked by uid 500); 1 Jun 2012 17:28:23 -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 47380 invoked by uid 99); 1 Jun 2012 17:28:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2012 17:28:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 710CC142862 for ; Fri, 1 Jun 2012 17:28:23 +0000 (UTC) Date: Fri, 1 Jun 2012 17:28:23 +0000 (UTC) From: "Gary D. Gregory (JIRA)" To: issues@commons.apache.org Message-ID: <727047286.27442.1338571703466.JavaMail.jiratomcat@issues-vm> In-Reply-To: <410355425.25286.1338528323378.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Resolved] (IO-332) Improve tailer's reading performance 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/IO-332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary D. Gregory resolved IO-332. -------------------------------- Resolution: Fixed Fix Version/s: 2.4 Patch applied with tweaks. Thank you! > Improve tailer's reading performance > ------------------------------------ > > Key: IO-332 > URL: https://issues.apache.org/jira/browse/IO-332 > Project: Commons IO > Issue Type: Improvement > Reporter: Liyin Liang > Fix For: 2.4 > > Attachments: IO-332-1.diff > > > Now, Tailer triggers a lot of calls to the underlying runtime system, that is, RandomAccessFile.read(), a native method that returns the next byte of the file. This approach is too slow to meet our need. The performance can be improved by using a large buffer, that is using RandomAccessFile.read(byte[]). Then Tailer only rarely accesses the underlying system. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira