amtrack / force-dev-tool

[DEPRECATED] Command line tool supporting the Force.com development lifecycle
MIT License
108 stars 37 forks source link

Feature/memory tweaks #98

Closed leboff closed 6 years ago

leboff commented 6 years ago

@amtrack These changes are because I was running into some issues with node running out of memory while creating a changeset that included some pretty large files.

I traced it down to components being kept in memory after the parsing and comparison, so was able to significantly reduce memory usage but filtering out any unmodified children.

There's probably some additional memory usage improvements that could be made (perhaps using streams) but this was the easiest for now.

Also added an option to ignore whitespace, so whitespace changes aren't picked up by the diffMap method (which was causing issues for me as well).

This tool is very useful, thank you for creating it!

Feel free to decline these changes... just thought I'd share...

amtrack commented 6 years ago

Superseded by #99