optimized compiler for GC

This commit is contained in:
apex 2025-06-25 04:31:31 -04:00
parent e5f1227948
commit dcb9ae2f68

View File

@ -29,10 +29,10 @@ reader.on('line', (line) => {
});
async function writeThesaurus(thispath, entry) {
function writeThesaurus(thispath, entry) {
}
async function writeSounds(thispath, entry) {
function writeSounds(thispath, entry) {
var sounds = JSON.parse(fs.readFileSync(thispath+"sounds.json",'utf-8'));
if (entry.sounds == null){
@ -51,8 +51,9 @@ async function writeSounds(thispath, entry) {
}
});
fs.writeFileSync(thispath+"sounds.json",JSON.stringify(sounds));
sounds = null;
}
async function writeDefinitions(thispath, entry) {
function writeDefinitions(thispath, entry) {
var definitions = JSON.parse(fs.readFileSync(thispath+"definitions.json",'utf-8'));
@ -67,7 +68,7 @@ async function writeDefinitions(thispath, entry) {
definitions.glosses.push(ele.glosses);
});
fs.writeFileSync(thispath+"definitions.json", JSON.stringify(definitions));
definitions = null;
}
function initializeDir(path) {
fs.mkdirSync(path, {recursive:true});