question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A very long initialization time of filters (deep + entry)

See original GitHub issue

Environment

  • OS Version: macOS 10.13.3
  • Node.js Version: 8.9.0

Source

The problem

We have to figure out a way to reduce the initialization time of filters. Something like 14ms for the following tasks:

{ base: 'src/types/one',
  dynamic: true,
  patterns: [ 'src/types/one/*/sub/y/y.json' ],
  positive: [ 'src/types/one/*/sub/y/y.json' ],
  negative: [] }
Prepare reader options: 8.445ms
{ base: 'src/types/two',
  dynamic: true,
  patterns: [ 'src/types/two/*/sub/y/y.json' ],
  positive: [ 'src/types/two/*/sub/y/y.json' ],
  negative: [] }
Prepare reader options: 1.802ms
{ base: 'src/types/three',
  dynamic: true,
  patterns: [ 'src/types/three/*/sub/y/y.json' ],
  positive: [ 'src/types/three/*/sub/y/y.json' ],
  negative: [] }
Prepare reader options: 1.400ms
{ base: 'src/types/four',
  dynamic: true,
  patterns: [ 'src/types/four/*/sub/y/y.json' ],
  positive: [ 'src/types/four/*/sub/y/y.json' ],
  negative: [] }
Prepare reader options: 0.794ms
{ base: 'src/types/five',
  dynamic: true,
  patterns: [ 'src/types/five/*/sub/y/y.json' ],
  positive: [ 'src/types/five/*/sub/y/y.json' ],
  negative: [] }
Prepare reader options: 2.111ms

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mrmlnccommented, Apr 22, 2019

The original problem is fixed after migration from micromatch@3 to micromatch@4.

https://github.com/mrmlnc/fast-glob/issues/154

The next slowdown problem will be fixed in the issue #156.

0reactions
mrmlnccommented, Apr 8, 2018

Hello, @jonschlinkert,

Thanks for quickly response. I answered you in the previously created issue in the micromatch repository. I think we don’t need to hurry.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Novel Set Of Weight Initialization Techniques For Deep ...
Researchers, like He and Glorot, have proposed weight initialization techniques that aim to keep the variance of the input gradient and the output...
Read more >
Orthogonal Initialization in Convolutional Layers
In this post we briefly describe some properties of orthogonal matrices that make them useful for training deep networks, before discussing ...
Read more >
Why cautiously initializing deep neural networks matters?
A bad initialization can really hinder the learning of the highly non-linear system. Due to random initialization, the first layer throws away most...
Read more >
WHEN IS A CONVOLUTIONAL FILTER EASY TO LEARN?
We show that (stochastic) gradient descent with random initialization can learn the convolutional filter in polynomial time and the convergence rate depends on ......
Read more >
Convolution Aware Initialization - arXiv
We utilized skip connections as originally proposed in the paper, with 256 filters for every convolutional layer, with a dilation depth of 9...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found