You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Helper methods (walking etc.) would be functions in separate package(s).
diff(dir1, dir2) is cheap.
If we make it core API, Broccoli can automatically (de)materialize to/from FS on plugin boundaries as needed.
I think I'm missing some serious issue. But can't figure out what.
I considered doing proper Dir/File/Symlink classes, or {type: 'symlink', value: '/target'}-style plain objects, but if we can get away with using Map/Buffer/string directly we gain performance.
(I've come around to thinking that "plain directories on the filesystem" might've been a suboptimal choice of abstraction, due to overhead and cross-platform issues. Perhaps in the future most Broccoli plugins just communicate via in-memory objects, and physical FS becomes exception rather than rule?)
As for memory usage, I agree most plugins should write to cachePath and return symlinks into it, instead of in-memory Buffers. We could even consider going without Buffer support to encourage this. I'm really unsure about this.
As for reifying directory trees, if we are able to do it incrementally, we should be fine, right? I'm writing a function for that right now.
This seems to have gone stale, there are additional ways to improve build performance. We can drive that work from concrete problems, and iterate to a solution.
Copying from Twitter. (Cc @rwjblue, @hjdivad.)
@joliss:
@stefanpenner:
The text was updated successfully, but these errors were encountered: