Skip to content

Conversation

SergeiPavlov
Copy link
Collaborator

@SergeiPavlov SergeiPavlov commented Jan 15, 2025

Also:

  • Optimize Xtensive.Orm.Building.Validator: make Regexes static
  • Use FrozenSet

@SergeiPavlov SergeiPavlov changed the title Make KeyField readonly struct (#339) Make KeyField be a record struct (#339) Jan 15, 2025
@SergeiPavlov SergeiPavlov merged commit 63a2c1b into master-servicetitan Jan 16, 2025
4 checks passed
@SergeiPavlov SergeiPavlov deleted the KeyField branch January 16, 2025 09:20
private readonly Regex columnNamingRule;
private readonly Regex typeNamingRule;
private readonly Regex fieldNamingRule;
private static readonly Regex ColumnNamingRule = new(@"^[\w][\w\-\.]*$", RegexOptions.Compiled | RegexOptions.CultureInvariant);

Choose a reason for hiding this comment

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

It's better to use compile time generated regex feature

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.

3 participants