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

Using ArrayBuffer to Store/Transfer Grid State #505

Open
anthumchris opened this issue Oct 9, 2019 · 0 comments
Open

Using ArrayBuffer to Store/Transfer Grid State #505

anthumchris opened this issue Oct 9, 2019 · 0 comments

Comments

@anthumchris
Copy link

anthumchris commented Oct 9, 2019

I went into a rabbit hole after reading Surma's article "Is postMessage Slow?" and became curious to know the feasibility of using an ArrayBuffer with PROXX for performant postMessage() calls. My thoughts were to provide native JS property access while maintaining behavior of interface Cell to allow usage like: grid.cells[col][row].hasMine = true.

Do you think the approach below could provide benefits or is the current patchset implementation already performant enough? Instead of cluttering this thread with code, I wrote an independent POC to test the transferability of Cell states in a 40x40 grid. Start at CellGrid and Cell in branch: master...AnthumChris:arraybuffer-poc

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

No branches or pull requests

1 participant