# ChildProcess.spawnWindows: Drastically reduce the amount of allocation during FileNotFound recovery · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/b362cbbc9fb4ab09c6a52948476d3d7dff27d795)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: b362cbbc9fb4ab09c6a52948476d3d7dff27d795

Requested commit: b362cbbc9fb4ab09c6a52948476d3d7dff27d795

Commit: b362cbbc9fb4ab09c6a52948476d3d7dff27d795

Tree: aa08044016c10e62ce20531eb775f023ab68e053

Author: Ryan Liptak

Committer: Ryan Liptak

## Message

```
ChildProcess.spawnWindows: Drastically reduce the amount of allocation during FileNotFound recovery

Avoid a lot of unnecessary utf8 -> utf16 conversion and use a single ArrayList buffer for all the joined paths instead of a separate allocation for each join

```

## Parents

- [6a1021fb7d14604b4f66b2c992f47eadcc812989](https://git.cafe/gitcafe/zig/commit/6a1021fb7d14604b4f66b2c992f47eadcc812989?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/b362cbbc9fb4ab09c6a52948476d3d7dff27d795?format=markdown)
