Improve 3Dmol.js | Project Link | Organization
Description: The 3DMol.js library size is quite large, but can be optimized by using const instead of var, array destructuring, global constants, and the Float32Array class. Functions can be made more performant by reusing variables, using default function arguments, and caching repeated values. Reducing conditional checks, using switch statements, and avoiding redundant calculations can also improve performance. Using squared distance, subarray method, and reducing branching can also help optimize the library. CodeQL workflow can be added for security purposes.
- Contributor: @adithyaakrishna
- Mentor: @dkoes
- 3dmol/3Dmol.js#683
- 3dmol/3Dmol.js#684
- 3dmol/3Dmol.js#686
- 3dmol/3Dmol.js#687
- 3dmol/3Dmol.js#688
- 3dmol/3Dmol.js#689
- 3dmol/3Dmol.js#690
- 3dmol/3Dmol.js#691
- 3dmol/3Dmol.js#693
- 3dmol/3Dmol.js#694
- 3dmol/glcheck#1
So the task is to refactor the code?