You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-35Lines changed: 27 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,38 +1,30 @@
1
1
# Berry - High-Performance Yarn Lockfile Parser
2
2
3
-
A high-performance, zero-allocation parser for Yarn v3/v4 lockfiles, built with Rust and nom. This parser focuses on idiomatic Rust, modularity, and performance for future use in WASM or with napi-rs.
3
+
A high-performanceparser for Yarn v3/v4 lockfiles, built with Rust and nom. This parser focuses on performance, with minimal allocation and future use in WASM or with napi-rs.
4
4
5
-
## 🚀 Features
6
-
7
-
-**Zero-Allocation Parsing**: Minimal memory allocations during parsing phase
8
-
-**High Performance**: Sub-millisecond parsing for most lockfiles
9
-
-**Comprehensive Support**: Handles all major Yarn v3/v4 lockfile features
10
-
-**Memory Efficient**: Optimized for minimal heap usage
11
-
-**Production Ready**: Comprehensive test coverage and benchmarking
12
-
13
-
## 📊 Performance
5
+
## Performance
14
6
15
7
The parser is designed for high performance with minimal memory usage:
16
8
17
-
-**Small files** (~1KB): ~6-7 microseconds
18
-
-**Medium files** (~2KB): ~2-3 microseconds
19
-
-**Large files** (~40KB): ~5 microseconds
20
-
-**Memory usage**: Typically 0-20KB heap usage depending on fixture complexity
9
+
- Small files (~1KB): ~6-7 microseconds
10
+
- Medium files (~2KB): ~2-3 microseconds
11
+
- Large files (~40KB): ~5 microseconds
12
+
- Memory usage: Typically 0-20KB heap usage depending on fixture complexity
21
13
22
-
## 🏗️ Architecture
14
+
## Architecture
23
15
24
16
```
25
17
crates/
26
18
├── berry-core/ # Main parser library
27
19
├── berry-test/ # Integration tests
28
20
├── berry-bench/ # Criterion microbenchmarks
29
21
├── berry-bench-bin/ # CLI benchmarking tool
30
-
└── node-bindings/ # Node.js bindings (planned)
22
+
└── node-bindings/ # Node.js bindings (WIP)
31
23
```
32
24
33
-
## 🧪 Benchmarking
25
+
## Benchmarking
34
26
35
-
The project includes comprehensive benchmarking infrastructure for performance monitoring and regression detection.
27
+
The project includes basic benchmarking infrastructure for performance monitoring and regression detection. Claude wrote that part, apologies.
0 commit comments