---
title: "Comment by j on \"Discarding Gulp.js — Why I created Panto.js\" | Hashnode"
description: "just out of curiosity you keep the dependency-tree in memory I guess ? how does it affect the memory and the cpu ? I&#39;m just curious and this is about metric"
url: "https://hashnode.com/posts/discarding-gulpjs-why-i-created-pantojs/57ce3d9ae5e41a2a5c24fab3/comment/57ce6eb38626a90b3b2370d7"
---

[Discussion](https://hashnode.com/posts/discarding-gulpjs-why-i-created-pantojs/57ce3d9ae5e41a2a5c24fab3)

Comment [Discarding Gulp.js — Why I created Panto.js](https://hashnode.com/posts/discarding-gulpjs-why-i-created-pantojs/57ce3d9ae5e41a2a5c24fab3)

[j](https://hashnode.com/@chilimatic)

[Sep 6, 2016](https://hashnode.com/posts/discarding-gulpjs-why-i-created-pantojs/57ce3d9ae5e41a2a5c24fab3/comment/57ce6eb38626a90b3b2370d7)

just out of curiosity you keep the dependency-tree in memory I guess ? how does it affect the memory and the cpu ? I'm just curious and this is about metrics not to offend.

I like the idea of 1 source to reduce the IO.... did you solve it via generator streams to reduce memory and only pipe the actual stream buffer through different processes, not sure if JS really supports stream generators atm. but you could build a class for that I guess.

[Yanni Nightingale](https://hashnode.com/@yanni4night)

[Sep 7, 2016](https://hashnode.com/posts/discarding-gulpjs-why-i-created-pantojs/57ce3d9ae5e41a2a5c24fab3/comment/57ce6eb38626a90b3b2370d7#reply-57cfc5442d6648bfbc19863f)

Thanks. Dependency-tree _IS_ in the memory, but that costs very little. The key is, every node transforms files(called **_Stream_** in _panto.js_) holds a copy of file content, that may takes a lot of memory. My solution is, if the size of content exceed 1Mb, save it to tmp file. I'm thinking about convert strings to buffer in the near future. And the stream idea is great, like gulp does, but I need to merge multiple processes into one. I'm considering how to implement that.

[j](https://hashnode.com/@chilimatic)

[Sep 7, 2016](https://hashnode.com/posts/discarding-gulpjs-why-i-created-pantojs/57ce3d9ae5e41a2a5c24fab3/comment/57ce6eb38626a90b3b2370d7#reply-57cfcab33f4d8e2a1947a1ae)

i guess this has to be a future concept to maintain the order and in the end the max amount of memory stays the same because you have to store the transformed data somewhere. thats actually a quite cool problem :D i will watch the repos to see what you came up with :D
