Make `memory` the default store
See original GitHub issueIs 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 formemory
.
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:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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:
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
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 🤕