Attachment Perf Improvement
---------------------------

                 Key: AXIS2-2946
                 URL: https://issues.apache.org/jira/browse/AXIS2-2946
             Project: Axis 2.0 (Axis2)
          Issue Type: Improvement
          Components: kernel
            Reporter: Rich Scheuerle
            Assignee: Rich Scheuerle


I am working on  a performance improvement improvement reading attachments.

Currently the Axiom Attachments code reads bytes until it surpasses the file 
threshold.  If the file threshold is high (i.e. 100M) this causes a very large 
buffer to be created....even if the attachment is stored on file.

The improvement is to use the content-length  of the message as a heuristic to 
determine if the attachments should be flushed to file.
This improves performance and memory footprint.

The first part of the change is to add an Axiom Attachment constructor to axiom 
that accepts a content-length parameter.  If the content-length is set, then 
the the heuristic is used.

The second part of the change is to add code to the Axis2 kernel builder to 
pass in the content-length.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to