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

Micro-optimize XML calls #252

Merged
merged 4 commits into from
Oct 2, 2014
Merged

Conversation

cddude229
Copy link
Contributor

Summary:
First Commit: Don't global variables that aren't actually used at all.
Second Commit: If debug is not enabled, don't even put it in the call stack. This removes the debug() check on production path, but lets you still enable it with ?debug=1 (as you would before)
Third Commit: Only global a variable if we truly need it. The less variables we look up, the faster it is.

Overall, these changes saved about 10% on page loading time against 26mb of XML. (If I remember correctly anyways. I wrote this a while back.)

I apologize for the first commit being a merge - my gitfu is weak.

vvuksan added a commit that referenced this pull request Oct 2, 2014
@vvuksan vvuksan merged commit c989e6d into ganglia:master Oct 2, 2014
@cddude229 cddude229 deleted the microoptimize-xml-2 branch April 2, 2015 07:02
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