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

Batch detection #21

Open
roberttod opened this issue Mar 11, 2016 · 1 comment
Open

Batch detection #21

roberttod opened this issue Mar 11, 2016 · 1 comment

Comments

@roberttod
Copy link
Contributor

Batches of events sent synchronously can be detected by the uv-api. Some hook to these batches e.g. uv.onBatch(function (batch) {}) could be useful.

Specifically I need this hook in Jolt, i.e. we could just read/write the cookie once in a batch of events rather than constantly reading and writing. This is a real performance bottleneck right now that should be fixed asap (I think Jolt would run in about a third of the time with this enhancement).

@KidkArolis @jhollingworth does this make sense at all? I can provide an example if you like.

@jhollingworth
Copy link

When will batches be sent? What's the value in writing on batch time rather than on debounce? Are there alternative approaches you've considered? (I'm not saying this approach is bad, I just want to get a full picture)

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

No branches or pull requests

2 participants