"vscode:/vscode.git/clone" did not exist on "39d270d72ae5a9cd188a155b75f779eff661a208"
Drastically improve performance of getElementByMass
The old approach iterated through the entire periodic table by atomic number and subtracted the provided mass by the element's mass and kept track of the smallest difference. The new approach steps through the elements in order of atomic number and bails once it hits an element with a higher mass than the target mass (assuming masses are monotonically increasing). On my desktop, processing 4TVP-dmj_wat-ion.psf dropped from 297 s to 15.4 s. But 15.4 s is still a bit too long...
Showing
Please register or sign in to comment