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

[base] Optimize and move drafts collate function to draft-utils #1422

Merged
merged 1 commit into from
Aug 1, 2019

Conversation

bjoerge
Copy link
Member

@bjoerge bjoerge commented Aug 1, 2019

This optimizes how we collate drafts and published into a single entry for display in document lists. Also moved the collate function into the common draftUtils package so that we can re-use it anywhere else it's needed.

The numbers I got when collating a list of 10474 items locally (average of around 10 samples):

Before: 142.15 ms
After: 18.47 ms

This optimizes how we collate drafts and published into a single entry for display in document lists. Also moved the collate function into the common draftUtils package so that we can re-use it anywhere else it's needed.

The numbers I got when collating a list of 10474 items locally (average of around 10 samples):

*Before*: 142.15 ms
*After*: 18.47 ms
@bjoerge bjoerge requested a review from rexxars August 1, 2019 14:28
Copy link
Member

@rexxars rexxars left a comment

Choose a reason for hiding this comment

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

Nice!

@bjoerge bjoerge merged commit 4bf926e into next Aug 1, 2019
@bjoerge bjoerge deleted the optimize-drafts-collation branch August 1, 2019 14:34
bjoerge added a commit that referenced this pull request Aug 13, 2019
This optimizes how we collate drafts and published into a single entry for display in document lists. Also moved the collate function into the common draftUtils package so that we can re-use it anywhere else it's needed.

The numbers I got when collating a list of 10474 items locally (average of around 10 samples):

*Before*: 142.15 ms
*After*: 18.47 ms
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