Skip to content

Remove geometry type regex parsing logic (removing regex dependency entirely) #4896

@roji

Description

@roji

A NativeAOT size analysis of Npgsql shows 276k of System.Text.RegularExpressions. These come from the geometry types (NpgsqlPoint, NpgsqlLine...), which parse their PG text representation via regex, and a trivial usage in PgPassFile.

We should remove these. In general, we shouldn't be in the business of reimplementing PG text representations (no other type does this any more), and the geometry types are very rarely used.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions