concord-consortium / lab

HTML5-based scientific models, visualizations, graphing, and probeware
http://lab-framework.concord.org/
MIT License
57 stars 38 forks source link

Send data to CODAP in smaller chunks to avoid performance problems #132

Closed pjanik closed 6 years ago

pjanik commented 6 years ago

[#157605204]

kswenson commented 6 years ago

@jsandoe You should take a look at this PR. Perhaps a suggestion in the plugin API docs about breaking up the data into chunks would make sense.

pjanik commented 6 years ago

Thanks @kswenson. @jsandoe, yes, note in the API docs would be helpful. Actually, I think that it would be great if the handling of large arrays was implented on the CODAP side. It's not a big deal for a client to send thousands of points using postMessage, so batching here seems a bit strange. It's CODAP having some troubles with that. Also, we could avoid reimplementing similar workarounds in various plugins.