Skip to content

Use more idiomatic throttling code - #5186

Closed
mourner wants to merge 1 commit into
masterfrom
simpler-throttler
Closed

mourner wants to merge 1 commit into
masterfrom
simpler-throttler

Conversation

@mourner

@mourner mourner commented Aug 23, 2017

Copy link
Copy Markdown
Member

Made the throttling code simpler and more idiomatic while investigating #5185.

  • briefly describe the changes in this PR
  • write tests for all new functionality
  • manually test the debug page

@mourner
mourner requested a review from ChrisLoer August 23, 2017 15:08

@ChrisLoer ChrisLoer left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is 💯 (err, pending figuring out the test hang?).

It's not directly related to this PR, but have you seen that @ivovandongen is working on the throttling on the native side to have better control over which scheduler we use (mapbox/mapbox-gl-native#9611)?

Also on the viewport-collision branch (#5150), the "redoPlacement" use case will disappear, possibly leaving this code orphaned.

Comment thread src/util/util.js
});
};

/**

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: fiven -> given

@mourner
mourner force-pushed the simpler-throttler branch from 0f55eac to 6c6364c Compare August 23, 2017 15:58
@mourner

mourner commented Aug 23, 2017

Copy link
Copy Markdown
Member Author

@ChrisLoer sure — if #5150 is close to shipping, feel free to close the PR.

@mourner

mourner commented Aug 23, 2017

Copy link
Copy Markdown
Member Author

Not sure what's going on with the freezing tests though, I thought this was something on the Circle side...

@mourner

mourner commented Aug 28, 2017

Copy link
Copy Markdown
Member Author

Closing since this will be irrelevant with #5150. We can revisit when we need throttling code again.

@mourner mourner closed this Aug 28, 2017
@jfirebaugh
jfirebaugh deleted the simpler-throttler branch September 21, 2017 17: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