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

Feature/ch100368/performance getfeatures #130

Merged
merged 8 commits into from
Aug 31, 2020

Conversation

padawannn
Copy link
Contributor

@padawannn padawannn commented Aug 27, 2020

Performance:

  • Debounce function for DATA_CHANGED layer event
  • Prevent replace layer every time widget data changes
  • Move debounce function to root utils file

@vercel
Copy link

vercel bot commented Aug 27, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/carto-frontend/web-sdk/p579u9twf
✅ Preview: https://web-sdk.now.sh

Base automatically changed from feature/ch99194/web-sdk-implement-new-bqsource to develop August 28, 2020 10:46
@@ -457,13 +464,18 @@ export class Layer extends WithEvents implements StyledLayer {
dimensions.forEach(dimension => this._source.addField(dimension));
columns.forEach(aggregatedColumn => this._source.addAggregatedColumn(aggregatedColumn));

return this.replaceDeckLayer();
if (this._source.needsInitialization) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!

@@ -3,9 +3,10 @@ import { Layer, Source } from '@/viz';
import { Credentials } from '@/auth';
import { Filter, ColumnFilters, SpatialFilters } from '@/viz/filters/types';
import { AggregationType } from '@/data/operations/aggregation/';
import { debounce } from '@/viz/core/utils';
Copy link
Contributor

Choose a reason for hiding this comment

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

Really nice!

Copy link
Contributor

@VictorVelarde VictorVelarde left a comment

Choose a reason for hiding this comment

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

🚀 Well done!

Please add a note to changelog, like this and merge when you want:

Added

  • Better performance in Layer, with a debounced approach to DATA_CHANGED event (#130)

@vercel vercel bot temporarily deployed to Preview August 31, 2020 09:10 Inactive
@padawannn padawannn merged commit 3085478 into develop Aug 31, 2020
@padawannn padawannn deleted the feature/ch100368/performance-getfeatures branch August 31, 2020 09:13
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