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.

Make `memory` the default store

See original GitHub issue

Is your feature request related to a problem? Please describe. The default store level has few disadvantages over memory:

  • it creates an intermediary .jscpd/ folder.
  • it is slower. At least on one medium-size repository I tried, it took 20 seconds for level and 15 seconds for memory.

I think the main issue with memory is that it does not work with huge repositories. However, the vast majority of users won’t have that edge case. The ones that do can opt-in to use level instead.

Describe the solution you’d like Change the default value of storeOptions to level instead.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
kucherenkocommented, May 2, 2020

Hi there. I hope you still interesting in the jscpd. Currently I’m going to release new version of jscpd@3.3.0 and test functionality with jscpd@3.3.0-rc.3.

So, jscpd moved to monorepo with lot of improvements: memory will be is default store. If you want to use other store you can install it (e.g @jscpd/leveldb-store) and use following command:

jscpd ./path/to/clones --store leveldb

the functionality still in RC, it would be great if you can provide any feedback regarding the functionality, new API and performance. I will release soon to main branch and close the issue.

More info located here - jscpd monorepo

1reaction
diegocrcommented, May 21, 2019

Anything that improves the performance will be very welcome… i did just upgraded from 0.6.25 to 2.0.15 and running it for JS files over my company repo takes +15 minutes 🤕

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Set an SD Card as Default Storage in Android - Lifewire
Insert an SD card into your device. · Open Settings > Storage Settings. · Select your SD card. · Tap the menu icon...
Read more >
Set my SD card as default storage on Android phone
Go to device “Settings”, then select “Storage”. · Select your "SD Card", then tap the “three-dot menu“ (top-right), now select “Settings” from in ......
Read more >
How to Use SD Card as Default Storage on Android - wikiHow
1. Connect your SD card to your Android. If you are using a microSD card on a device with the appropriate slot, this...
Read more >
How to Make SD Card Default Storage on Android? - Appuals
First of all, take your SD card and put it in your Android phone.
Read more >
How To Use SD Card As Internal Storage On Android - Carlcare
Use SD card as default storage for installing apps · Insert the SD card into the slot. · Launch Settings · Navigate and...
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