Skip to content

pgdate: pgdate.ParseDate allocates a lot of temporary heap memory #91834

@cucaroach

Description

@cucaroach

The fieldExtract struct escapes to the heap and the textChunks and numbers slices in fieldExtract.Extract are allocated every time, pulling these allocations into a reusable struct that can be passed to ParseDate would greatly speed up date parsing.

Jira issue: CRDB-21450

Metadata

Metadata

Assignees

Labels

C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-queriesSQL Queries Team

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions