[prev in list] [next in list] [prev in thread] [next in thread] 

List:       velocity-dev
Subject:    [jira] Commented: (VELOCITY-570) speed improvement of the tokenizer
From:       "Nathan Bubna (JIRA)" <dev () velocity ! apache ! org>
Date:       2008-07-15 14:05:31
Message-ID: 396254088.1216130731883.JavaMail.jira () brutus
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/VELOCITY-570?page=com.atlassian.jira.plugi \
n.system.issuetabpanels:comment-tabpanel&focusedCommentId=12613610#action_12613610 ] 

Nathan Bubna commented on VELOCITY-570:
---------------------------------------

Releases happen when someone takes the time to push one through.  I don't know if i \
will really get to it amidst the busyness of summer, but i have been hoping to start \
pushing a 1.6 release process by summer's end.  I'm also rather anxious to start \
using features in 1.6...

> speed improvement of the tokenizer
> ----------------------------------
> 
> Key: VELOCITY-570
> URL: https://issues.apache.org/jira/browse/VELOCITY-570
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.4, 1.5, 1.6
> Environment: Tested on FreeBSD 6.2-STABLE and Linux (Debian Etch) on i386.
> Java: JDK 1.5
> Reporter: Ronald Klop
> Fix For: 1.6
> 
> Attachments: expandbuff-speedup-reinit-fix.patch, expandbuff-speedup.patch
> 
> 
> On some large templates (1-4MB) velocity gets very slow. I used JProfiler and found \
> a lot of time is spent in VelocityCharStream.ExpandBuff. It is doing a lot of \
> System.arraycopy. The problem is that the size of the buffer is increased linearly \
> in stead of exponentialy. I have made a patch which doubles the size of the buffer \
> in stead of incrementing it with the same value. In my tests and in JProfiler it is \
> shown that a lot less time is spent in ExpandBuff.

-- 
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@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic