Skip to content

Conversation

@nohupped
Copy link
Collaborator

@nohupped nohupped commented Jul 29, 2025

Summary

replace .to_string() calls and format!() with write!() macros to reduce heap allocations in display formatting except Enum(enum_type, values) where values is a HashMap

added test cases test_aggregate_function, test_tuple_display, test_enum_display and test_variant_display for the display implementation for DataTypeNode

Fixes #260

Checklist

Delete items not relevant to your PR:

  • Unit and integration tests covering the common scenarios were added
  • A human-readable description of the changes was provided so that we can include it in CHANGELOG later

…peNode Display

replace .to_string() calls and format!() with write!() macros to reduce heap allocations in display formatting

added test cases test_aggregate_function, test_tuple_display, test_enum_display and test_variant_display for the display implementation for DataTypeNode
@nohupped nohupped requested review from serprex and slvrtrn July 29, 2025 11:21
Copy link
Contributor

@slvrtrn slvrtrn left a comment

Choose a reason for hiding this comment

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

This is great, thanks!

@slvrtrn slvrtrn merged commit 1219fb9 into main Jul 30, 2025
7 checks passed
@slvrtrn slvrtrn added this to the 0.14.0 milestone Sep 22, 2025
@slvrtrn slvrtrn deleted the girish/patch-on-260 branch October 8, 2025 19:18
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.

Avoid unnecessary heap allocation in Display impl for DataTypeNode

4 participants