dslop 1.7.0 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/README.md +16 -1
- package/dist/index.cjs +773 -1559
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v1.7.2
|
|
4
|
+
|
|
5
|
+
[compare changes](https://github.com/turf-sports/dslop/compare/v1.7.1...v1.7.2)
|
|
6
|
+
|
|
7
|
+
### 🔥 Performance
|
|
8
|
+
|
|
9
|
+
- 50x faster - parallel processing, cache line counts ([de430e5](https://github.com/turf-sports/dslop/commit/de430e5))
|
|
10
|
+
|
|
11
|
+
### 📖 Documentation
|
|
12
|
+
|
|
13
|
+
- Update performance numbers ([1c6465e](https://github.com/turf-sports/dslop/commit/1c6465e))
|
|
14
|
+
|
|
15
|
+
### ❤️ Contributors
|
|
16
|
+
|
|
17
|
+
- Siddharth Sharma <sharmasiddharthcs@gmail.com>
|
|
18
|
+
|
|
19
|
+
## v1.7.1
|
|
20
|
+
|
|
21
|
+
[compare changes](https://github.com/turf-sports/dslop/compare/v1.7.0...v1.7.1)
|
|
22
|
+
|
|
23
|
+
### 🔥 Performance
|
|
24
|
+
|
|
25
|
+
- 28x faster with caching, remove text-based detection ([b93742c](https://github.com/turf-sports/dslop/commit/b93742c))
|
|
26
|
+
|
|
27
|
+
### ❤️ Contributors
|
|
28
|
+
|
|
29
|
+
- Siddharth Sharma <sharmasiddharthcs@gmail.com>
|
|
30
|
+
|
|
3
31
|
## v1.7.0
|
|
4
32
|
|
|
5
33
|
[compare changes](https://github.com/turf-sports/dslop/compare/v1.6.1...v1.7.0)
|
package/README.md
CHANGED
|
@@ -149,11 +149,26 @@ function getInitials(person: Person): string {
|
|
|
149
149
|
- Tiny functions (configurable via `--min-lines`)
|
|
150
150
|
- Common patterns from UI libraries (shadcn components, etc.)
|
|
151
151
|
|
|
152
|
+
## Performance
|
|
153
|
+
|
|
154
|
+
dslop uses aggressive caching + parallel processing for speed:
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
# First run (builds cache)
|
|
158
|
+
$ dslop --all
|
|
159
|
+
Scanned 1410 files (373K lines) in 2.5s
|
|
160
|
+
|
|
161
|
+
# Cached runs
|
|
162
|
+
$ dslop --all
|
|
163
|
+
Scanned 1410 files (373K lines) in 170ms # 50x faster
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
Cache is stored in `.dslop-cache`. Add it to `.gitignore`. Use `--no-cache` to bypass.
|
|
167
|
+
|
|
152
168
|
## Limitations
|
|
153
169
|
|
|
154
170
|
- **TypeScript/JavaScript only:** AST parsing uses Babel with TS/JSX plugins
|
|
155
171
|
- **No cross-language:** Won't detect duplication across languages
|
|
156
|
-
- **Memory:** Loads all AST nodes in memory. Very large codebases (>1M lines) may be slow
|
|
157
172
|
|
|
158
173
|
## License
|
|
159
174
|
|