objectionary / eo2js

EOLANG to JavaScript transpiler and runtime
https://www.npmjs.com/package/eo2js
MIT License
7 stars 3 forks source link

Transpilation Optimization #115

Closed HaidarJbeily7 closed 1 week ago

HaidarJbeily7 commented 2 weeks ago

Overview:

Added utility function to skip unnecessary transpilation when source files haven't been modified. This optimization compares file modification timestamps to determine if retranspilation is needed, improving build performance.

Changes:


PR-Codex overview

This PR refactors the transpilation process by introducing a prepare function, modifying the transpile function to use it, and adding a needsRetranspile check to optimize file processing. It also enhances test cases for retranspilation based on file modifications.

Detailed summary

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

HaidarJbeily7 commented 1 week ago

@maxonfjvipon I have made the requested changes.

HaidarJbeily7 commented 1 week ago

Closes: #37

maxonfjvipon commented 1 week ago

@rultor merge

rultor commented 1 week ago

@rultor merge

@maxonfjvipon OK, I'll try to merge now. You can check the progress of the merge here.

rultor commented 1 week ago

@rultor merge

@maxonfjvipon Done! FYI, the full log is here (took me 20min).

maxonfjvipon commented 1 week ago

@HaidarJbeily7 Thanks