Skip to content

extensions/time: make to_not_compact_s 2x faster#80

Merged
bors[bot] merged 1 commit intomasterfrom
to_not_compact_s-speedup
Jun 11, 2019
Merged

extensions/time: make to_not_compact_s 2x faster#80
bors[bot] merged 1 commit intomasterfrom
to_not_compact_s-speedup

Conversation

@unleashed
Copy link
Copy Markdown
Contributor

No description provided.

@davidor
Copy link
Copy Markdown
Contributor

davidor commented Mar 19, 2019

I don't think we need to optimize to_not_compact_s.

This case is very different from #81 where to_compact_s was optimized.

to_compact_s is called multiple times per job and using profiling tools we could show that it appears as the second method that takes more CPU time.

to_not_compact_s is only called from

which is called at most once per job and it does not appear in the list of methods that take a significant amount of CPU time.

@unleashed
Copy link
Copy Markdown
Contributor Author

We don't need to do it, but we have it now. :)

@davidor
Copy link
Copy Markdown
Contributor

davidor commented Mar 19, 2019

If I were a new contributor and saw a benchmark for that method I'd think that it's one of the important ones, but it's not. I don't see any reason to merge that benchmark.

@unleashed
Copy link
Copy Markdown
Contributor Author

I agree, don't merge the benchmark! :)

@unleashed unleashed force-pushed the to_not_compact_s-speedup branch from 8598591 to 0f267fb Compare June 11, 2019 11:25
@unleashed
Copy link
Copy Markdown
Contributor Author

@davidor benchmark removed from this PR

bors Bot added a commit that referenced this pull request Jun 11, 2019
80:  extensions/time: make to_not_compact_s 2x faster r=davidor a=unleashed



Co-authored-by: Alejandro Martinez Ruiz <amr@redhat.com>
@davidor
Copy link
Copy Markdown
Contributor

davidor commented Jun 11, 2019

bors r+

bors Bot added a commit that referenced this pull request Jun 11, 2019
80:  extensions/time: make to_not_compact_s 2x faster r=davidor a=unleashed



Co-authored-by: Alejandro Martinez Ruiz <amr@redhat.com>
@bors
Copy link
Copy Markdown
Contributor

bors Bot commented Jun 11, 2019

Build succeeded

@bors bors Bot merged commit 0f267fb into master Jun 11, 2019
@bors bors Bot deleted the to_not_compact_s-speedup branch June 11, 2019 12:57
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