Commit c258d68
committed
Refactor filesystem operations to
async for concurrent I/O (concurrent optimisations not yet done)
Replace synchronous filesystem
operations with async/await throughout
the codebase
to enable concurrent file reads and
improve bundler performance. The
Context interface
now uses AsyncFilesystem exclusively,
allowing multiple file operations to
run in
parallel using Promise.all() where
beneficial.
Key changes:
- Replace Filesystem with
AsyncFilesystem in Context interface
- Add AsyncNodeFs and AsyncRecordingFs
implementations using fs/promises
- Update all filesystem operations to
use async/await
- Parallelize file existence checks
and reads where possible
- Maintain backward compatibility with
synchronous RecordingFs for tests
This sets the foundation for improved
build performance through concurrent
I/O
operations, particularly beneficial
when reading many files during
bundling.1 parent 9a11ee9 commit c258d68
File tree
43 files changed
+1408
-467
lines changed- src
- bundler
- cli
- lib
- components/definition
- localDeployment
- mcp
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
43 files changed
+1408
-467
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
0 commit comments