Skip to content

as_buffer() support for Object values.Β #65

@TkTech

Description

@TkTech

We now support as_buffer() #59 which drastically improves performance when loading arrays from JSON into numpy.

We should also support as_buffer() for Objects, which would retrieve the values as an array. This is to support calling it like this:

https://github.com/riddell-stan/pystan-next/blob/1e027a8bded88d51c6b957a841b859938c0ac86d/stan/fit.py#L93

For @riddell-stan's use case, this should use less memory and be roughly 4x faster (since we also void the iterator creation for values())

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions