phetsims / projectile-data-lab

"Projectile Data Lab" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
0 stars 0 forks source link

[CODAP] Apply batch processing optimizations to CODAP wrapper #355

Open matthew-blackman opened 1 month ago

matthew-blackman commented 1 month ago

When processing large groups of projectiles (for example, if 'Autogenerate data' is turned on), the wrapper lags as it tries to add the data entries one-by-one. Let's bundle the data that comes in a single frame to one API call with all of the new data being sent at once. This will be much faster, and allow for rapid collection of large amounts of data.

Nancy-Salpepi commented 2 weeks ago

The data is added much faster in 1.0.5-rc.1 with mac + safari (compared it to 1.0.0-dev.3). I will keep this issue open until more platforms are tested.

KatieWoe commented 2 weeks ago

Due to the wording in https://github.com/phetsims/projectile-data-lab/issues/346#issuecomment-2427695987, I wonder if that error is related?

KatieWoe commented 2 weeks ago

I tried it out myself, and they do seem connected.