Parser Optimization
After many hours of work, I have managed to pump out a new stable release for Molecule-Master. Unfortunately, no new features will be coming in this release. Do not worry though, a number of layers of new optimization features were added to the library, including:
- Removal of features that weren't related to the functionality of the parser. I felt the need to remove the ChemicalEquation class because it was really just an unnecessary addition of the parser. If I want to have this in my library, I think I should at least provide some functionality to go with the chemical equation class, like balancing equations.
- Optimization of the parser by using regular expressions instead of complicated logic. By using regular expressions, I have managed to make the parser faster and more efficient, by reducing processing time by up to 50%.
- Refactored substance by removing useless subclasses that provided no additional functionality. I previously had subclasses of the Substance class such as Compound and Molecule, but when I was explaining my program to my mom, I realized neither of them provided any additional functionality from their superclass.
As of my plans for the future of Molecule-Master, I would like to dedicate this repository solely to the parser rather than any other features such as balancing chemical equations. Instead, I would like to create a whole separate repository to house the various different utilities I manage to create using the parser. Or maybe I should just create modules to separate the parser and the utilities... Ok I think I will just do that instead to keep everything in one place!
Thank you for reading this, anonymous viewer.