Skip to content

Garbage collection improvements #25

@taniabogatsch

Description

@taniabogatsch

During some recent benchmarks, we found GC bottlenecks, some of which seem to be addressed by the below list of PRs.

However, we think we should also look into the following:

  • Running go test -bench . -benchmem and go build -gcflags '-m -l' to investigate allocs/ops (head allocations).
    • This package should have very few (if any), as the memory lives in DuckDB, and we can copy pointers by value, and also return the small structs we have by value.
  • Maybe use C directly for type sizes.
  • Fix inconsistencies in the StringTLength function.
  • (Optional) Use C-primitives for getters and setters of supported types.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions