docma icon indicating copy to clipboard operation
docma copied to clipboard

New version compatibility and performance issues。

Open zjslqshqz opened this issue 6 years ago • 3 comments

My friend, the following problem occurred when I reinstalled. And the compilation of documents becomes very slow.

Originally more than 200 files, as long as 1 minute. Now it takes 4 minutes.

My environment:

node: 13.12.0

npm: 6.14.4

                       === npm audit security report ===                        
                                                                                
┌──────────────────────────────────────────────────────────────────────────────┐
│                                Manual Review                                 │
│            Some vulnerabilities require your attention to resolve            │
│                                                                              │
│         Visit https://go.npm.me/audit-guide for additional guidance          │
└──────────────────────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Low           │ Regular Expression Denial of Service                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ clean-css                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=4.1.11                                                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ docma [dev]                                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ docma > less-plugin-clean-css > clean-css                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/785                             │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Low           │ Regular Expression Denial of Service                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ braces                                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.3.1                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ docma [dev]                                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ docma > dustjs-linkedin > chokidar > anymatch > micromatch > │
│               │ braces                                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/786                             │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Low           │ Regular Expression Denial of Service                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ marked                                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=0.7.0                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ docma [dev]                                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ docma > marked                                               │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/1076                            │
└───────────────┴──────────────────────────────────────────────────────────────┘
found 3 low severity vulnerabilities in 8228 scanned packages
  3 vulnerabilities require manual review. See the full report for details.

zjslqshqz avatar Apr 09 '20 07:04 zjslqshqz

➜  His-66 git:(dev-6.6-contOS) ✗ npm fund                     
[email protected]
├─┬ https://github.com/sponsors/isaacs
│ └── [email protected]
├─┬ https://github.com/sponsors/sindresorhus
│ └── [email protected]
├─┬ https://opencollective.com/babel
│ └── @babel/[email protected]
├─┬ https://github.com/sponsors/ljharb
│ └── [email protected], [email protected]
├─┬ https://opencollective.com/unified
│ └── [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
├─┬ https://tidelift.com/funding/github/npm/browserslist
│ └── [email protected]
├─┬ https://opencollective.com/core-js
│ └── [email protected]
└─┬ https://github.com/sponsors/wooorm
  └── [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]


zjslqshqz avatar Apr 09 '20 07:04 zjslqshqz

Any news on this issue? Upgrading to Node v12.16.1 seems to introduce a huge performance impact as well. Going from a couple of seconds to ~5 mins (for ~180 files).

santiagoroca avatar May 01 '20 15:05 santiagoroca

There is currently no record of the author's activity on github. Also, we need to fix it ourselves.😂

zjslqshqz avatar May 04 '20 00:05 zjslqshqz