Glob speed really slow #385
-
Howdy, I just started using nfpm and am trying to package some larger packages with it, so I might have hit an edge case with what I am trying to use nfpm on. The packages that I am trying to make are gigabytes in size, but also contain thousands to hundred of thousands of files in them. When I try to package these with nfpm, it never gets to the packaging stage. I debugged a little bit, and it get to the For example, this current package I am trying to make contains 159k files and is 4.9G in size. Using fpm on this takes roughly three minutes to package it up. However, using nfpm never finished (I killed the process after an hour and a half). Is there anyway to speed up the globbing function? I tried with both |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
We probably shouldn't try to append uniquely but append first and unique later. That should reduce the complexity. I'll bench it and see if I can get some improvement. |
Beta Was this translation helpful? Give feedback.
-
Yep, my benchmarks show there is room for improvement:
I'll open an issue and submit a PR if I find some time to clean up my proof-of-concept. |
Beta Was this translation helpful? Give feedback.
Yep, my benchmarks show there is room for improvement:
I'll open an issue and submit a PR if I find some time to clean up my proof-of-concept.