-
Notifications
You must be signed in to change notification settings - Fork 750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improving generation performances #456
base: master
Are you sure you want to change the base?
Conversation
Because Html2Pdf loop through html elements, and creates a lot of sub elements, each time a sub element is cleared, a complete scan of /tmp/ dir was made to delete temp files. These modifs allow to make only ONE scan in /tmp/ dir, at the end of generation, to delete temp files.
static protected $_tables = array(); // static table to prepare the nested html tables | ||
static protected $_subobj = null; // object html2pdf prepared in order to accelerate the creation of sub html2pdf | ||
static protected $_tables = array(); // static table to prepare the nested html tables | ||
static protected $_tmpFilesAreCleaned = false; // flag : file cleaning is done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems there are some additional white spaces here.
* Get the private variable file_id, for cleaning tmp files | ||
* @access public | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The *
should be in line, but different amounts of white spaces are used for each line.
Can someone merge this please ? @k00ni |
I am sorry, I can't. Just wanted to help by making a review. |
ping @spipu ? I have a performance problem since I upgraded. Thx 👍 |
Because Html2Pdf loop through html elements, and creates a lot of sub elements, each time a sub element is cleared, a complete scan of /tmp/ dir was made to delete temp files.
These modifs allow to make only ONE scan in /tmp/ dir, at the end of generation, to delete temp files.