Skip to content

Optimize unneeded string concatenation#1433

Merged
Spikhalskiy merged 1 commit intotemporalio:masterfrom
Spikhalskiy:optimize-unneded-string-concat
Sep 15, 2022
Merged

Optimize unneeded string concatenation#1433
Spikhalskiy merged 1 commit intotemporalio:masterfrom
Spikhalskiy:optimize-unneded-string-concat

Conversation

@Spikhalskiy
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

@cretz cretz left a comment

Choose a reason for hiding this comment

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

Definitely some micro-optimization, though I know it's on a hot path. Wonder if it'd be worth any included micro-benchmarking in the test suite.

@Spikhalskiy
Copy link
Copy Markdown
Contributor Author

@cretz It is, but it's a silly mistake to make an eager concatenation here while this string ideally should never be used at all. I think we are in pre-microbenchmarking era yet, where I'm just fixing mostly obvious silly things. Later some elements may be worth isolating and micro benchmarking. Like the cooperative multithreading runner.

@Spikhalskiy Spikhalskiy merged commit ff7f0e3 into temporalio:master Sep 15, 2022
@Spikhalskiy Spikhalskiy deleted the optimize-unneded-string-concat branch September 16, 2022 22:16
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