Skip to content

fix: DH-21670: Memory leak when using use_row_data hooks#1305

Open
mofojed wants to merge 2 commits intodeephaven:mainfrom
mofojed:DH-21670-use-table-data-memory-leak
Open

fix: DH-21670: Memory leak when using use_row_data hooks#1305
mofojed wants to merge 2 commits intodeephaven:mainfrom
mofojed:DH-21670-use-table-data-memory-leak

Conversation

@mofojed
Copy link
Member

@mofojed mofojed commented Feb 13, 2026

  • We were not filtering the table before taking a snapshot, resulting in a snapshot of the entire table for every tick
  • For big tables this is a big problem
  • Just take the first row or column of the table
  • Added some unit tests to verify the behaviour

- We were not filtering the table before taking a snapshot, resulting in a snapshot of the entire table for every tick
- For big tables this is a big problem
- Just take the first row or column of the table
- Added some unit tests to verify the behaviour
@mofojed mofojed requested a review from jnumainville February 13, 2026 19:01
@mofojed mofojed self-assigned this Feb 13, 2026
@github-actions
Copy link

ui docs preview (Available for 14 days)

…patibility

In Python 3.10, `import module.submodule as alias` doesn't work correctly
when the parent package exports a function with the same name as the module.
Using sys.modules to get the actual module objects resolves this issue.
@github-actions
Copy link

ui docs preview (Available for 14 days)

Copy link
Collaborator

@jnumainville jnumainville left a comment

Choose a reason for hiding this comment

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

One comment, but it's ignorable

return data if is_sentinel or data is None else data.to_dict(orient="list")


def first_column_table(table: Table) -> Table:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Very nitpicky: this is fine, but you could do something to abstract the head(1) call into here as well. Currently a bit uneven of an abstraction.

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.

2 participants