Files
documentdb/pg_documentdb_core/src/io
Cornelius Boateng 3269f4269e Merged PR 1694107: [perf] Omit collationString alloc
### Does this PR have any customer impact?

### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)

### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes)

### Are you introducing any new config? If yes, do you have tests with and without them being set?

### ChangeLog (Refer [Template](../oss/CHANGELOG.md))

### Description

more

----
#### AI description  (iteration 1)
#### PR Classification
Performance optimization.

#### PR Summary
This PR eliminates an unnecessary memory allocation during BSON parsing by omitting the call to `pstrdup` for the collation string.
- `/oss/pg_documentdb_core/src/io/pgbsonelement.c`: Replaced `pstrdup(bson_iter_utf8(&iter, NULL))` with a direct pointer assignment from `bson_iter_utf8(&iter, NULL)`.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
2025-06-13 15:13:47 +08:00
..