Skip to content
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

Performance improvements #145

Closed
wants to merge 7 commits into from
Closed

Performance improvements #145

wants to merge 7 commits into from

Conversation

kstenschke
Copy link

These are a few simple performance improvements, without any functional change to html2pdf's functionality. For details see included commits.

kstenschke and others added 7 commits November 29, 2016 21:43
… implicit typecasts into using identity operator
… needless concatenations into single declarations
…reduced repeated calculation/call of identical value/method, made in_array() checks strict, merged nested positive ifs, simplified array creation
…d repeatedly indentical declared parameters in reused variable
… is_null method call by faster comparison with null, replaced intval() calls with faster (int), extracted unchanging calculations from iteration-loop, removed unnecessary parenthesis, +declared uncaught exceptions in phpDoc
@kstenschke
Copy link
Author

closed PR, will open another one containing more commits right now.

@kstenschke kstenschke closed this Nov 30, 2016
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.

None yet

1 participant