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

Backport fixes for 23.x #12825

Merged
merged 3 commits into from
May 16, 2023
Merged

Backport fixes for 23.x #12825

merged 3 commits into from
May 16, 2023

Conversation

mkruskal-google
Copy link
Member

No description provided.

JamesNK and others added 3 commits May 15, 2023 16:29
This PR replaces the descriptor name validation regex with a validation method. This change allows the `System.Text.RegularExpressions` engine to be trimmed away in published apps that do standard protobuf serialization.

There are some other usages of `Regex` in Google.Protobuf, but they in `JsonParser`. They are only included in a published app if `JsonParser` is used.

Another benefit is a slightly faster app startup time. The removed regex was compiled, which has a high-ish fixed cost.

cc @jskeet @jtattermusch

Closes #12174

COPYBARA_INTEGRATE_REVIEW=#12174 from JamesNK:jamesnk/remove-regex 9d065a3
PiperOrigin-RevId: 532210203
This turns the constexpr constructors into templates to silence errors when constexpr isn't valid.  We are also switching to 12.2 for GCC/cmake tests to prevent regressions (9.5 and 13.1 are already tested by GCC/bazel tests).

Fixes #12807

PiperOrigin-RevId: 532258101
@mkruskal-google mkruskal-google added the back-port Cherrypick PRs to release branches label May 15, 2023
@mkruskal-google mkruskal-google requested a review from haberman May 15, 2023 23:49
@mkruskal-google mkruskal-google requested review from a team as code owners May 15, 2023 23:49
@mkruskal-google mkruskal-google requested review from dmaclach and jtattermusch and removed request for a team May 15, 2023 23:49
@thomasvl thomasvl removed the request for review from dmaclach May 16, 2023 13:27
@mkruskal-google mkruskal-google merged commit 71fca0c into 23.x May 16, 2023
@mkruskal-google mkruskal-google deleted the fixes-23 branch May 16, 2023 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-port Cherrypick PRs to release branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants