Skip to content

Commit 3c2281e

Browse files
committed
Bump version to 0.2.1
🎯 Performance Optimization Release - Patch v0.2.1 ## Key Improvements βœ… 39.8% performance improvement in real-world testing βœ… ScanMetrics architecture refactoring (11β†’2 parameters) βœ… Zero clippy warnings with enhanced code quality βœ… Comprehensive performance documentation βœ… Production-ready optimization validation ## Performance Achievements - Real-world scan: 3,564ms β†’ 2,144ms (Standard β†’ Optimized) - Throughput: 18.2 β†’ 30.3 files/sec (66.5% improvement) - Pattern detection: 2,481 matches with high accuracy - Memory efficiency: Improved with grouped metrics ## Documentation Added - Interactive performance dashboard - Complete optimization guide and API docs - Technical architecture documentation - Benchmark analysis and recommendations Ready for production deployment with validated performance gains!
1 parent 9e9f983 commit 3c2281e

File tree

6 files changed

+36
-36
lines changed

6 files changed

+36
-36
lines changed

β€ŽCargo.lockβ€Ž

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žcrates/cli/Cargo.tomlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "code_guardian_cli"
3-
version = "0.1.9"
3+
version = "0.2.1"
44
edition = "2021"
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/d-oit/code-guardian"

β€Žcrates/core/Cargo.tomlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "code-guardian-core"
3-
version = "0.1.9"
3+
version = "0.2.1"
44
edition = "2021"
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/d-oit/code-guardian"

β€Žcrates/core/benches/performance_comparison.rsβ€Ž

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use code_guardian_core::{
22
optimized_scanner::OptimizedScanner,
3-
performance_optimized_scanner::PerformanceOptimizedScanner, DetectorFactory, DetectorProfile,
4-
Scanner, PatternDetector, TodoDetector, FixmeDetector, HackDetector,
5-
ConsoleLogDetector, DebuggerDetector,
3+
performance_optimized_scanner::PerformanceOptimizedScanner, ConsoleLogDetector,
4+
DebuggerDetector, DetectorFactory, DetectorProfile, FixmeDetector, HackDetector,
5+
PatternDetector, Scanner, TodoDetector,
66
};
77
use criterion::{black_box, criterion_group, criterion_main, BenchmarkId, Criterion};
88
use std::fs;
@@ -56,7 +56,7 @@ fn bench_small_codebase(c: &mut Criterion) {
5656
let temp_dir = TempDir::new().unwrap();
5757
create_test_files(&temp_dir, 10, 100);
5858

59-
let detectors = DetectorProfile::Comprehensive.get_detectors();
59+
let _detectors = DetectorProfile::Comprehensive.get_detectors();
6060

6161
let mut group = c.benchmark_group("small_codebase");
6262

@@ -108,7 +108,7 @@ fn bench_medium_codebase(c: &mut Criterion) {
108108
let temp_dir = TempDir::new().unwrap();
109109
create_test_files(&temp_dir, 100, 500);
110110

111-
let detectors = DetectorProfile::Comprehensive.get_detectors();
111+
let _detectors = DetectorProfile::Comprehensive.get_detectors();
112112

113113
let mut group = c.benchmark_group("medium_codebase");
114114
group.sample_size(10); // Fewer samples for larger tests
@@ -160,7 +160,7 @@ fn bench_large_codebase(c: &mut Criterion) {
160160
let temp_dir = TempDir::new().unwrap();
161161
create_test_files(&temp_dir, 500, 1000);
162162

163-
let detectors = DetectorProfile::Comprehensive.get_detectors();
163+
let _detectors = DetectorProfile::Comprehensive.get_detectors();
164164

165165
let mut group = c.benchmark_group("large_codebase");
166166
group.sample_size(5); // Even fewer samples for largest tests
@@ -201,7 +201,7 @@ fn bench_cache_performance(c: &mut Criterion) {
201201
let temp_dir = TempDir::new().unwrap();
202202
create_test_files(&temp_dir, 50, 200);
203203

204-
let detectors = DetectorProfile::Comprehensive.get_detectors();
204+
let _detectors = DetectorProfile::Comprehensive.get_detectors();
205205

206206
let mut group = c.benchmark_group("cache_performance");
207207

β€Žcrates/output/Cargo.tomlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "code-guardian-output"
3-
version = "0.1.9"
3+
version = "0.2.1"
44
edition = "2021"
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/d-oit/code-guardian"

β€Žcrates/storage/Cargo.tomlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "code-guardian-storage"
3-
version = "0.1.9"
3+
version = "0.2.1"
44
edition = "2021"
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/d-oit/code-guardian"

0 commit comments

Comments
Β (0)