-
-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: replace fast-glob with tinyglobby #6167
Conversation
ignore spelling Signed-off-by: Jason Dent <Jason3S@users.noreply.github.com>
Expand the snapshots for a few integration test repos to show all issues. This will help to see why the results in #6167 are failing.
Thank you. I'll take a look. Changing the glob library is a delicate task because each glob libraries has slightly different behavior and glob support. A few of the integration tests are failing, but they do not show enough detail why. I'm guessing it is related to symbolic links. I am improved the reporting to give more insight. |
Thank you for your contribution. I would also like to thank you for your work on Svelte. It is a great framework.
I'm all for dropping dependencies. Just so I am clear, what is the motivation for picking
There are a few ways:
|
After extending the integration test reporting, it is clear that the issue is with symbolic links. They are causing the same file to be reported on multiple times. |
Oops. I'll close this for now due to the test failure and reopen when I've got it working. Thanks for the kind words, btw! The reason I chose A bunch of widely used projects like nuxt, unocss, ni, tsup, eslint-react, vite-plugin-pwa, pkg.pr.new, and publint have switched to |
I see the tinyglobby author opened few issues on fdir related to sym links. |
Hi! tinyglobby author here. Just FYI, the issues I opened related to symlinks are only applicable when symlinks are resolved, which isn't the case here. I just opened thecodrr/fdir#115 though which should allow tinyglobby to exclude symlinks (until the |
FYI proper support for symlinks / excluding symlinks was implemented in today's |
I've updated this PR to use the latest |
side note, it seems that a mem leak was found and |
Only |
Thank you. |
Performance ReportDaily Performancexychart-beta
title Files Per Second by Day
y-axis Files per Second
x-axis Date [Sep-2, Sep-6, Sep-9, Sep-10, Sep-13, Sep-16, Sep-17, Sep-18, Sep-22, Sep-23, Sep-29, Sep-30, Oct-1]
bar [175.68, 178.38, 175.73, 175.70, 175.56, 170.99, 174.42, 176.15, 171.49, 170.60, 174.68, 172.58, 170.62]
line [122.42, 114.54, 119.33, 121.78, 117.69, 120.09, 120.05, 120.31, 117.43, 109.01, 117.33, 114.51, 112.29]
line [76.26, 75.33, 0.00, 76.18, 75.30, 72.34, 73.59, 69.54, 71.59, 70.97, 67.35, 0.00, 70.29]
line [451.36, 445.82, 0.00, 442.79, 448.98, 444.77, 437.29, 443.15, 426.39, 420.42, 425.42, 0.00, 405.76]
line [232.38, 230.54, 0.00, 229.61, 230.62, 234.72, 234.92, 228.04, 217.32, 205.66, 217.69, 0.00, 214.10]
line [249.29, 224.39, 0.00, 241.04, 239.64, 234.60, 238.64, 244.36, 234.31, 230.98, 235.16, 0.00, 230.90]
line [8.92, 9.30, 0.00, 9.85, 9.67, 9.68, 9.92, 9.37, 9.23, 9.26, 8.29, 0.00, 8.90]
line [40.72, 39.85, 0.00, 39.94, 41.26, 40.08, 36.34, 39.18, 37.74, 37.18, 36.89, 0.00, 37.27]
line [134.10, 133.16, 133.12, 133.37, 136.08, 131.30, 132.64, 136.81, 125.88, 123.97, 123.26, 124.35, 122.36]
line [198.37, 193.18, 205.21, 202.42, 187.59, 200.94, 202.64, 174.86, 188.42, 184.98, 195.97, 189.74, 185.35]
line [17.23, 19.98, 0.00, 20.38, 20.10, 19.75, 19.58, 19.44, 18.99, 18.71, 18.44, 0.00, 13.99]
line [82.19, 79.19, 0.00, 81.30, 83.34, 82.19, 82.78, 80.29, 80.65, 77.47, 76.93, 0.00, 78.07]
line [36.83, 35.85, 0.00, 37.06, 36.42, 35.98, 35.70, 34.54, 34.55, 33.11, 34.81, 0.00, 35.17]
line [379.20, 373.63, 372.65, 376.36, 368.52, 365.71, 377.56, 376.77, 361.09, 354.59, 368.19, 364.07, 344.36]
line [98.44, 103.61, 0.00, 95.82, 91.96, 97.25, 88.47, 97.89, 91.06, 89.08, 89.06, 0.00, 90.96]
line [168.11, 162.00, 0.00, 166.81, 166.56, 165.69, 164.68, 158.25, 149.51, 158.09, 156.96, 161.98, 156.93]
line [140.40, 143.33, 143.38, 143.55, 140.59, 138.57, 140.62, 141.72, 135.93, 132.42, 137.90, 131.39, 125.40]
line [251.96, 258.89, 257.30, 255.86, 259.52, 256.30, 250.62, 253.31, 250.10, 236.21, 245.48, 0.00, 255.93]
line [232.84, 224.81, 0.00, 227.34, 228.09, 230.87, 227.16, 231.88, 223.22, 214.31, 216.24, 0.00, 216.91]
line [143.31, 137.86, 0.00, 143.10, 144.41, 139.70, 143.74, 112.39, 139.33, 141.10, 137.72, 0.00, 139.61]
line [53.54, 52.52, 0.00, 52.32, 54.12, 51.77, 53.09, 51.40, 50.85, 49.44, 50.07, 0.00, 50.63]
line [43.29, 42.33, 0.00, 41.15, 42.24, 41.01, 42.53, 38.05, 39.43, 38.14, 38.94, 0.00, 39.96]
line [128.81, 149.88, 0.00, 151.49, 151.06, 156.36, 155.63, 151.63, 151.94, 152.50, 152.06, 143.32, 149.19]
line [203.78, 213.00, 214.26, 206.28, 205.22, 203.09, 207.23, 202.88, 201.82, 207.79, 207.90, 201.29, 209.19]
line [278.30, 269.85, 262.88, 274.40, 281.31, 272.54, 275.91, 275.97, 256.03, 258.54, 258.01, 259.58, 248.67]
line [174.42, 171.06, 0.00, 173.10, 169.76, 175.73, 176.36, 175.75, 159.14, 168.41, 169.31, 0.00, 170.99]
line [71.07, 70.80, 70.10, 70.83, 70.27, 68.51, 69.01, 65.91, 63.15, 63.41, 65.35, 0.00, 69.02]
line [98.03, 113.59, 117.23, 110.00, 114.04, 109.51, 113.51, 116.46, 104.81, 102.79, 108.89, 103.13, 103.52]
line [128.16, 146.70, 0.00, 151.25, 142.95, 141.14, 143.95, 140.92, 145.29, 140.59, 139.11, 138.01, 142.88]
line [93.42, 92.85, 96.99, 93.46, 97.52, 91.70, 93.14, 88.50, 84.12, 92.41, 91.76, 86.84, 88.64]
line [87.46, 87.14, 81.35, 83.34, 83.78, 82.79, 83.96, 85.57, 82.01, 81.81, 82.67, 0.00, 83.49]
line [221.13, 223.08, 217.30, 217.60, 210.80, 216.66, 208.33, 215.69, 211.15, 207.60, 206.93, 205.06, 202.44]
line [369.19, 372.46, 362.58, 366.57, 385.92, 371.23, 373.66, 361.57, 355.78, 361.81, 351.17, 345.43, 358.65]
line [182.17, 179.93, 181.55, 184.12, 189.95, 185.74, 153.97, 189.99, 184.11, 172.95, 176.46, 163.78, 167.39]
line [31.96, 32.39, 0.00, 33.27, 33.48, 33.18, 30.65, 34.02, 29.87, 31.63, 30.68, 0.00, 31.32]
line [392.41, 395.48, 385.49, 402.68, 388.38, 390.24, 382.26, 399.81, 383.04, 391.20, 384.82, 375.34, 397.41]
line [230.93, 227.50, 233.38, 223.69, 216.25, 228.77, 208.66, 221.89, 226.09, 216.90, 207.46, 223.39, 229.16]
line [119.32, 127.89, 123.29, 124.49, 129.64, 121.66, 124.08, 126.72, 119.08, 118.45, 114.87, 112.49, 118.05]
line [250.46, 249.77, 240.66, 262.89, 257.78, 257.49, 249.43, 247.25, 248.88, 251.75, 245.20, 245.06, 224.85]
line [89.68, 92.88, 88.59, 86.05, 89.85, 89.86, 94.27, 91.54, 90.45, 90.71, 92.55, 89.39, 93.96]
line [173.82, 183.91, 169.15, 181.18, 183.51, 175.60, 176.44, 174.39, 169.65, 170.91, 168.95, 166.28, 173.86]
line [263.57, 250.38, 244.75, 250.69, 253.77, 247.48, 255.65, 251.83, 237.98, 246.89, 242.54, 243.09, 224.03]
line [155.92, 153.19, 0.00, 155.03, 154.46, 150.27, 151.44, 153.53, 138.23, 146.78, 144.54, 144.66, 146.29]
line [56.79, 55.22, 55.40, 55.63, 54.54, 52.86, 55.21, 52.35, 50.94, 48.45, 51.30, 50.59, 50.58]
line [30.96, 30.04, 0.00, 31.22, 29.93, 31.17, 32.23, 31.60, 29.23, 29.18, 25.62, 0.00, 29.72]
line [170.71, 168.98, 170.63, 166.15, 168.68, 161.23, 172.09, 168.48, 164.20, 163.31, 169.03, 172.29, 155.24]
line [262.12, 249.11, 258.37, 255.88, 255.75, 261.30, 254.48, 241.79, 249.14, 250.28, 251.57, 258.18, 242.58]
line [133.06, 133.03, 112.77, 129.44, 131.63, 130.97, 130.22, 113.06, 109.25, 122.56, 121.09, 0.00, 125.59]
line [161.33, 168.54, 172.61, 166.17, 170.88, 163.08, 171.82, 163.97, 154.58, 167.67, 161.60, 161.14, 157.44]
line [143.06, 151.08, 140.90, 145.94, 143.19, 137.67, 143.95, 148.30, 144.49, 142.14, 152.04, 143.84, 146.29]
Time to Process Files
Note:
Files per Second over Time
Data Throughput
|
@benmccann and @SuperchupuDev, I'm going to have to roll this back. It seems that leading I'll add some unit tests to catch this issue in the future. |
@benmccann and @SuperchupuDev, Thank you for your efforts! |
interesting, i do know that leading |
The issues is with the |
It looks like tinyglobby 0.2.10 was updated to match the behavior of fast-glob when a negated ignore pattern is provided |
This removes 15 dependencies
https://npmgraph.js.org/?q=fast-glob - 17 dependencies
https://npmgraph.js.org/?q=tinyglobby - 2 dependencies