phetsims / build-a-molecule

"Build a Molecule" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
8 stars 7 forks source link

How to mange molecule data set? #109

Open Denz1994 opened 4 years ago

Denz1994 commented 4 years ago

Molecule data is stored in a rather large data set. See collectionMoleculesData, otherMoleculesData, and structuresData. This data contains all the available molecules that can be built in the play area.

With this data, a build version of the sim is sized at 8.1MB. Quite larger compared to other sims. Also, note that downloading the sim via Chrome will compress the .html file to 2.3MB. That is about 1/4 compression but is still larger than other sims.

If this isn't a problem then there is nothing left to be done with this issue and we can close. Otherwise, there are a few things to consider to handle this data set. After a brainstorming with @jonathanolson, we came up with some considerations:

Thoughts @ariel-phet on how to proceed?

arouinfar commented 4 years ago

There is so much flexibility in the third screen, and it would be really unfortunate to reduce the number of kits/atoms. My (unsolicited) vote would be against that option.

Denz1994 commented 4 years ago

Reduce the amount of available atoms/kits//kitCollections.

Just for clarification, any change to the amount of kits/atoms would have the same con of data regeneration noted in the above comment.

ariel-phet commented 4 years ago

As discussed today, we might see if there is some compression that can be done, but I don't think we need to reduce the data set at all.

Denz1994 commented 4 years ago

@ariel-phet mentioned via a zoom meeting on 02/07/20:

We can revist this while #158 is being worked on. There may be other options for compression.

Deferring this issue until then.