Open ahwitz opened 10 years ago
mei-all.rng seems to throw a maximum call stack exceeded error every time I use it. Worth diagnosing at some point, but -neumes seems to work right now.
...just added a try/catch and now it doesn't throw the error at all and checks the file all the way through. I don't understand this.
...and a few days later, the try/catch throws a further error.
This is an ongoing thing I'll fool around with over time.
I originally had
emcc -O2 -s ASM_JS=0 -s SAFE_HEAP=1 libxml2-2.2.7.8/xmllint.o libxml2-2.7.8/.libs/libxml2.a libz.a -o xmllintTest.js --pre-js pre.js
as the most efficient, but I lost some data in splitting the repos up, this doesn't work, and I can't retrace what's breaking it.Current record for functioning and lowest size is:
emcc -O1 --minify 1 -s ASM_JS=0 -s SAFE_HEAP=1 libxml2-2.7.8/xmllint.o libxml2-2.7.8/.libs/libxml2.a libz.a -o xmllint.raw.js --pre-js pre.js
at 7445895 bytes.Notes:
ALWAYS TAKE THE MOST RECENT CHANGES FROM THE REPO HEADER
Put in a wiki page at https://github.com/DDMAL/meix.js/wiki/Optimizing-xmllint.js to describe this as well.