Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Effective storage with custom list implementations #211

Open
dlux-google opened this issue Jul 6, 2020 · 2 comments
Open

Effective storage with custom list implementations #211

dlux-google opened this issue Jul 6, 2020 · 2 comments
Assignees

Comments

@dlux-google
Copy link

It would be great to have BuiltList to support a custom backing store for specialied lists, like the ones in dart:typed_data.

I'm thinking of passing a factory function to ListBuilder that creates the backing store before copying the values over. Something like typedef CreateListFunction<E> = List<E> Function();

@davidmorgan
Copy link
Contributor

I'm wondering if we should go further and have a separate implementation / codepath for these, so that we can use the typed data in the builders, too. That will take some work because the typed lists are fixed length, but it seems like it should save a lot of memory--WDYT?

@dlux-google
Copy link
Author

Yes, separate implementation looks like a good idea to me, dealing with fixed length arrays as a backing store will likely increase complexity quite a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants