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

Optimize performance around the usage of fields #328

Merged
merged 1 commit into from
Sep 24, 2018
Merged

Optimize performance around the usage of fields #328

merged 1 commit into from
Sep 24, 2018

Conversation

juanjoDiaz
Copy link
Collaborator

We were running all the logic around fields, labels, etc. on each row.
With this change, it is run only once at the beginning.

It also corrects a small bug that I found were an empty number was set as "".

@coveralls
Copy link

coveralls commented Sep 22, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 5e7c8d1 on juanjoDiaz:performance_optimization_on_fields into 8f0ae55 on zemirco:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 4c0554f on juanjoDiaz:performance_optimization_on_fields into f31d114 on zemirco:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 4c0554f on juanjoDiaz:performance_optimization_on_fields into f31d114 on zemirco:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 4c0554f on juanjoDiaz:performance_optimization_on_fields into f31d114 on zemirco:master.

/**
* Check and normalize the fields configuration.
*
* @param {String|FieldInfo} fields Fields configuration provided by the user
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be an array of String|FieldInfo?

@juanjoDiaz
Copy link
Collaborator Author

You are right! It should be good now.

I need to review all the comments tho. I don't think they are 100% correct. I'll do it in a separate PR.

@knownasilya knownasilya merged commit d9e4463 into zemirco:master Sep 24, 2018
@knownasilya
Copy link
Collaborator

Available in v4.3.0

@juanjoDiaz juanjoDiaz deleted the performance_optimization_on_fields branch April 29, 2019 15:43
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.

3 participants