Skip to content

[PERFORMANCE][SECURITY] Refactored Regex to cached (static readonly, Compiled, source generated, with timeout for security) #26095

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

Draft
wants to merge 67 commits into
base: main
Choose a base branch
from

Conversation

moljac
Copy link
Contributor

@moljac moljac commented Nov 25, 2024

Refactored Regex for performance and security

Please ignore formatting for now.

Description of Change

  1. use of source generators for net7.0+ (performance)
  2. use of Compiled option for non net7.0+ (performance)
  3. added timeout for security reasons
  4. class and method local Regex objects refactored to cached (static readonly)

@moljac moljac requested review from a team as code owners November 25, 2024 12:29
@moljac moljac marked this pull request as draft November 25, 2024 12:29
@moljac moljac self-assigned this Nov 25, 2024
@moljac
Copy link
Contributor Author

moljac commented Nov 25, 2024

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@moljac moljac changed the title [Performance][Security] Refactored Regex to cached (static readonly, Compiled, source generated, with timeout for security) [PERFORMANCE][SECURITY] Refactored Regex to cached (static readonly, Compiled, source generated, with timeout for security) Nov 25, 2024
@moljac
Copy link
Contributor Author

moljac commented Nov 25, 2024

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@moljac
Copy link
Contributor Author

moljac commented Nov 25, 2024

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@moljac
Copy link
Contributor Author

moljac commented Nov 26, 2024

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@moljac
Copy link
Contributor Author

moljac commented Nov 27, 2024

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@moljac
Copy link
Contributor Author

moljac commented Dec 3, 2024

/rebase

@moljac moljac force-pushed the dev/moljac/20241115-net9.0-performance-regex-source-generator branch from b93adac to 7bf09c5 Compare February 21, 2025 14:57
@moljac
Copy link
Contributor Author

moljac commented Feb 23, 2025

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@moljac
Copy link
Contributor Author

moljac commented May 15, 2025

/rebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-architecture Issues with code structure, SDK structure, implementation details
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants