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

Refactored GridColumn.getAggregationValue. #2175

Conversation

@danielzabotti
Copy link
Contributor

danielzabotti commented Nov 20, 2014

The function were always iterating all rows and saving the results on a local variable to be used in only 4/6 of the time, causing a lot of overhead.

Its now wrapped in a local function and is called only when needed.

Here are the Batarang and ngStats screeshots from before and after the modification.

Before:

monitorangularforeachpadrao - ngstats
monitorangularforeachpadrao

After:

monitorangularforeachcomfuncaolocal -ngstats
monitorangularforeachcomfuncaolocaltodosagregadores

@c0bra
Copy link
Member

c0bra commented Dec 2, 2014

Thanks! Merged with 47ac609 due to auto-merge conflict.

@c0bra c0bra closed this Dec 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.