Ah thanks. Going back to the original question of very long build times, I’ve been getting insanely long build times as well - 15 to 20 minutes (if ever) and at the end of it, sometimes there is just a syntax error I have to fix! Tried out the Profiler mentioned in the post/article linked above. (I write this post 19 minutes into a build process…Going insane.)
The files.renameDirAlmostAtomically…439,759 ms (3) seems to be the main culprit for me- does anyone know what fundamenally causes this, or how to further address it - permanently?(I’ve noticed some changes recently in the 1.6 release…so the short term solution perhaps is just to wait for that…but I’m using 1.5.1 and wasn’t having this issue until recently. This issue pops up every month or two even while keeping my project updated over the past year…so not sure if there’s an underlying cause I can address by doing things differently myself.)
EDIT: Deleting the “local” folder in the project helps - cuts the rebuild time down by 75%. Still a couple of minutes- but manageable; however, don’t understand how it actually works still.
| (#2) Total: 67,639 ms (ProjectContext prepareProjectForBuild)
| (#3) Profiling: Build App
=> Meteor 220.127.116.11 is available. Update this project with ‘meteor update’.
=> Started MongoDB.
Building the application
…then I get this:
| Top leaves:
| other files.renameDirAlmostAtomically…439,759 ms (3)
| files.rm_recursive…17,646 ms (6)
| files.readFile…14,442 ms (1840)
| files.stat…11,420 ms (38368)
| Babel.compile…10,933 ms (436)