[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2016-01-03 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15080437#comment-15080437
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1722719 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1722719 ]

PDFBOX-3131: simplify entry access

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and data to reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-26 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15071869#comment-15071869
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1721724 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1721724 ]

PDFBOX-3131: use arrays instead if lists

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and data to reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-26 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15071876#comment-15071876
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1721729 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1721729 ]

PDFBOX-3131: use arrays instead if lists

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and data to reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-24 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15071043#comment-15071043
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1721623 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1721623 ]

PDFBOX-3131: use the buffer and System.arraycopy instead of reading one byte 
after the other, simplify readByte

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and data to reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-23 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15069778#comment-15069778
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1721556 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1721556 ]

PDFBOX-3131: use the buffer and System.arraycopy instead of reading one byte 
after the other

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and data to reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-23 Thread JIRA

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15069784#comment-15069784
 ] 

Andreas Lehmkühler commented on PDFBOX-3131:


This change reduces the time to build the font cache by 50%

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and data to reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-22 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15068256#comment-15068256
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1721414 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1721414 ]

PDFBOX-3131: don't read the OS/2 table if the whole font is omitted

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and data to reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-22 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15068314#comment-15068314
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1721419 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1721419 ]

PDFBOX-3131: avoid NPE

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and data to reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-22 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15068297#comment-15068297
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1721418 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1721418 ]

PDFBOX-3131: use a range mapping instead of storing a mapping for each single 
value of a format 2 charset of a CID font as there might be thousands of values

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and data to reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-22 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15068345#comment-15068345
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1721423 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1721423 ]

PDFBOX-3131: use a range mapping instead of storing a mapping for each single 
value of a format 1 charset of a CID font

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and data to reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-21 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15066313#comment-15066313
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1721119 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1721119 ]

PDFBOX-3131: preallocate the expected amount of values for collections to avoid 
massive resizing operations, simplify code

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and data to reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-21 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15066352#comment-15066352
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1721132 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1721132 ]

PDFBOX-3131: use predefined Charsets instead of strings

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and data to reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-19 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15065353#comment-15065353
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1720905 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1720905 ]

PDFBOX-3131: preallocate the expected amount of values for collections to avoid 
massive resizing operations

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and dat ot reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-19 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15065365#comment-15065365
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1720909 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1720909 ]

PDFBOX-3131: use the byte array instead of using a stream to avoid holding a 
copy of the origin data

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and dat ot reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15063775#comment-15063775
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1720742 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1720742 ]

PDFBOX-3131: preallocate the expected amount of values for collections to avoid 
massive resizing operations

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and dat ot reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15063826#comment-15063826
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1720749 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1720749 ]

PDFBOX-3131: preallocate the expected amount of values for collections to avoid 
massive resizing operations

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and dat ot reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15064150#comment-15064150
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1720820 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1720820 ]

PDFBOX-3131: preallocate the expected amount of values for collections to avoid 
massive resizing operations

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and dat ot reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-17 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15062148#comment-15062148
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1720574 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1720574 ]

PDFBOX-3131: preallocate the expected amount of values for collections to avoid 
massive resizing operations

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and dat ot reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-16 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15060367#comment-15060367
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1720397 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1720397 ]

PDFBOX-3131: reduce the amount of data when parsing AFM files as PDFBox uses 
char metrics only

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and dat ot reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-01 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15034486#comment-15034486
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1717510 from [~jahewson] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1717510 ]

PDFBOX-3131: Expose CFF font data without storing it in memory

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and dat ot reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-01 Thread John Hewson (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15034494#comment-15034494
 ] 

John Hewson commented on PDFBOX-3131:
-

I was using the getData() API for an internal project. I've replaced its 
implementation with a new ByteSource class which allows a deferred byte[] 
source to be passed to CFFParser so that it can re-read the original byte[] 
source on demand, instead of keeping it in memory.

I'd have done something simpler but CFF fonts may be nested inside both TTCs 
and OTFs, so having a getBytes() API is really useful (at least to me).

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and dat ot reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-01 Thread JIRA

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15034163#comment-15034163
 ] 

Andreas Lehmkühler commented on PDFBOX-3131:


The font source data isn't stored anymore. It isn't used anywhere. The only 
hint I've found is PDFBOX-2791. But I didn't got the point as the CFF data 
isn't changed/repaired anywhere.
If the data is really needed, we might implement some sort of a switch.

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and dat ot reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-01 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15034122#comment-15034122
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1717473 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1717473 ]

PDFBOX-3131: don't store the source data of the font

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and dat ot reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-01 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15034110#comment-15034110
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1717472 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1717472 ]

PDFBOX-3131: don't copy data

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and dat ot reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-01 Thread John Hewson (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15034225#comment-15034225
 ] 

John Hewson commented on PDFBOX-3131:
-

Yep, whatever CFF data was exposed for it's not used, even in my private code.

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and dat ot reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-12-01 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15034230#comment-15034230
 ] 

ASF subversion and git services commented on PDFBOX-3131:
-

Commit 1717478 from [~jahewson] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1717478 ]

PDFBOX-3131: Completely remove CFF data methods

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and dat ot reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity

2015-11-30 Thread JIRA

[ 
https://issues.apache.org/jira/browse/PDFBOX-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15031652#comment-15031652
 ] 

Andreas Lehmkühler commented on PDFBOX-3131:


Does anybody know why we are storing the original data of a CFFFont?
{code:title=CFFParser.java line 118}
 font.setData(bytes);
{code}

It doesn't seem to be used anywhere

> Reduce amount of intermediate data and objects to reduce memory 
> footprint/complexity
> 
>
> Key: PDFBOX-3131
> URL: https://issues.apache.org/jira/browse/PDFBOX-3131
> Project: PDFBox
>  Issue Type: Improvement
>  Components: FontBox
>Affects Versions: 2.0.0
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> The CFFParser holds a lot of intermediate data and produces a lot of objects 
> to do so. The idea is to reduce the amount of such objects and dat ot reduce 
> the memory footprint and the complexity.
> - the class IndexData holds intermediate data creates byte array everytime 
> when getBytes is called. I'm going to replace the class with a simple list to 
> reduce the memory footprint and the complexity
> - remove unused members of private classes
> - create a list of strings instead of a list of byte arrays which is used to 
> create those strings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org