Skip to content

Update PropertyResolver.java#262

Open
shelatgauri wants to merge 3 commits into
plutext:VERSION_2_8_1from
shelatgauri:patch-1
Open

Update PropertyResolver.java#262
shelatgauri wants to merge 3 commits into
plutext:VERSION_2_8_1from
shelatgauri:patch-1

Conversation

@shelatgauri
Copy link
Copy Markdown

@shelatgauri shelatgauri commented Sep 14, 2017

without_deepcopy

with_deepcopy
For documents which are created using template, the default Rpr can be deep-copied once and saved in threadlocal. I have attached snapshots of with and without changes, to give an idea of amount of time saved.

The getEffectiveRPr does a deep copy. This is done using marshalling unmarshalling . To reduce this time, we can simply reset defaultRpr.
@shelatgauri
Copy link
Copy Markdown
Author

shelatgauri commented Sep 14, 2017

pdf-1.0-SNAPSHOT.zip
This is a sample test app. To use this war deploy it after making changes(for input and output files) in the in PDFGeneration class and compiling it using the project below:
generate-pdf.zip

@plutext
Copy link
Copy Markdown
Owner

plutext commented Sep 14, 2017 via email

@shelatgauri
Copy link
Copy Markdown
Author

Kindly refer to the issue created.
link to the issue : #263.
I am also attaching a sample document containing many run elements.
SampleDoc1.docx

added method to clear the the thread local created. This is done to avoid memory leaks in multi-threaded environment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants