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

STYLE/PERF: replace string concatenations with f-strings in core #49518

Merged
merged 1 commit into from
Nov 7, 2022

Conversation

akx
Copy link
Contributor

@akx akx commented Nov 4, 2022

Doing less concatenations and explicit cast calls in the core is likely to yield some performance improvements (see https://twitter.com/raymondh/status/1205969258800275456).

Split out of #49229.
Refs #29547 (a 2019 issue tracking replacing formatting with better alternatives)

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

@akx akx marked this pull request as ready for review November 4, 2022 09:47
@mroeschke mroeschke added the Code Style Code style, linting, code_checks label Nov 4, 2022
@akx akx force-pushed the string-concatenations-core branch from 71435e2 to a7f3ce0 Compare November 4, 2022 20:46
@akx akx force-pushed the string-concatenations-core branch from a7f3ce0 to 9d1591b Compare November 4, 2022 21:39
Copy link
Contributor

@topper-123 topper-123 left a comment

Choose a reason for hiding this comment

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

LGTM.

@topper-123 topper-123 merged commit f0d4694 into pandas-dev:main Nov 7, 2022
@topper-123
Copy link
Contributor

Thanks @akx!

@akx akx deleted the string-concatenations-core branch November 15, 2022 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants