james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luc DUZAN (JIRA)" <server-...@james.apache.org>
Subject [jira] [Created] (JAMES-2095) Optimize IO upon saving Attachment in Cassandra
Date Mon, 10 Jul 2017 12:02:00 GMT
Luc DUZAN created JAMES-2095:
--------------------------------

             Summary: Optimize IO upon saving Attachment in Cassandra
                 Key: JAMES-2095
                 URL: https://issues.apache.org/jira/browse/JAMES-2095
             Project: James Server
          Issue Type: Improvement
          Components: cassandra
            Reporter: Luc DUZAN


In CassandraAttachmentMapper::asyncStoreAttachment:

 - We wrap a stream in an array without specifying the size while we know it -> GC and
many copies and reallocations
 - We generate a byte array from a stream from a byte array

This can be easily optimised.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message