Author: tilman
Date: Sat Oct 2 16:51:24 2021
New Revision: 1893830
URL: http://svn.apache.org/viewvc?rev=1893830&view=rev
Log:
PDFBOX-4892: reduce memory usage, as suggested by valerybokov
Modified:
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/text/NextLine.java
Modified:
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/text/NextLine.java
URL:
http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/text/NextLine.java?rev=1893830&r1=1893829&r2=1893830&view=diff
==============================================================================
---
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/text/NextLine.java
(original)
+++
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/text/NextLine.java
Sat Oct 2 16:51:24 2021
@@ -37,7 +37,7 @@ public class NextLine extends OperatorPr
public void process(Operator operator, List<COSBase> arguments) throws
IOException
{
//move to start of next text line
- List<COSBase> args = new ArrayList<COSBase>();
+ List<COSBase> args = new ArrayList<COSBase>(2);
args.add(new COSFloat(0f));
// this must be -leading instead of just leading as written in the
// specification (p.369) the acrobat reader seems to implement it the
same way