Skip to content

pp_split: calculate flags just once and other minor tweaks #18526

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

Merged

Conversation

richardleach
Copy link
Contributor

The commits in this PR:

  • calculate the flags for newSVpvn_flags just once, rather than at every call.
  • make realarray a bool, rather than an I32.
  • move the definition of multiline to the only branch that actually uses it.

These changes result in a smaller pp.o, although not a smaller miniperl/perl (with gcc at -O2).
Simple benchmarks on x64 Linux don't show a change to run time performance.

@richardleach richardleach force-pushed the hydahy/pp_split-notrailing_empty branch from 500c4b9 to 0d6ea91 Compare February 4, 2021 02:04
@richardleach richardleach added the do not merge Don't merge this PR, at least for now label Feb 4, 2021
@richardleach richardleach force-pushed the hydahy/pp_split-notrailing_empty branch from 0d6ea91 to a080eee Compare February 4, 2021 02:07
@richardleach richardleach added awaiting review and removed do not merge Don't merge this PR, at least for now labels Feb 4, 2021
@tonycoz tonycoz assigned tonycoz and unassigned tonycoz Feb 8, 2021
@tonycoz tonycoz self-requested a review February 8, 2021 04:32
Copy link
Contributor

@tonycoz tonycoz left a comment

Choose a reason for hiding this comment

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

Looks good to me

@khwilliamson khwilliamson merged commit 07b740f into Perl:blead Feb 9, 2021
@richardleach richardleach deleted the hydahy/pp_split-notrailing_empty branch February 9, 2021 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants