NodeRadar Pro v2.0.2
NodeRadar Pro v2.0.2
Performance and Zero-Allocation Networking
- Zero-Allocation Linux ARP Parsing (
ArpResolver.cs): Replaced whole-fileReadAllTextandstring.Splitwith streamingStreamReader,ReadOnlySpan<char>slicing inTryParseProcNetArpLineandstring.Createfor MAC uppercase and hyphen substitution (73% memory allocation reduction, 3.7x execution speedup). - Zero-Allocation Subnet IP Parsing (
SubnetScanner.cs): Replaced IP string splitting with stack spans,CountDotsand .NET 10HashSet.TryGetAlternateLookup<ReadOnlySpan<char>>(0 heap bytes allocated for IP comparisons during active discovery sweeps). - Event-Driven Log Queue Flushing (
Logger.cs): ReplacedThread.Sleep(10)polling loop inLogger.FlushForTesting()withManualResetEventSlimsignaling (15x faster test queue flush latency).
Architecture and UI Refactoring
- Modularized Security Audit Export (
SupportPage.cs): Refactored monolithic audit generator into modular static helpers (BuildSecurityAuditReport,AppendExecutiveSummary) with strict 12-hour AM/PM formatting (yyyy-MM-dd hh:mm:ss tt) and mirrored unit tests. - De-nested Theme Integrity Shield (
DarkPurpleTheme.cs): Extracted anonymousTask.Rundelegate into a clean staticVerifySystemIntegritymethod. - De-nested Inventory Fingerprinting (
InventoryPage.cs): Extracted node fingerprinting logic inOnPingClickedintoTryFingerprintDiscoveredNodeAsyncwith clean guard clauses. - Clean Database History Merging (
LocalDatabase.cs): Flattened 7 levels of indentation inMergeWithHistoryBulkby extractingMergeExistingNodeandMergePortBannershelpers.
Security
- SMTP Certificate Validation Hardening (
EmailService.cs): Removed commented-out insecure SSL/TLS certificate validation bypass callback. - Pull Request Security Triage: Audited 22 open pull requests against security invariants, closing unsafe contributions that stored plaintext master keys on disk, deleted live user databases in
%USERPROFILE%\Documentsduring tests or invokedrundll32.exe.
Test Coverage & Diagnostics
- Comprehensive Database Backup Tests (
DatabaseBackupServiceTests.cs): Added unit and integration tests covering backup creation, custom target paths, 7-generation retention pruning, corrupt database rotation and restore failure recovery. - Headless Audio Testing Seam (
AudioService.cs): AddedSetSoundPlayerForTestingtest seam for deterministic test runs without OS audio hardware dependencies. - Inventory Uptime History Test (
LocalDatabaseTests.cs): Added targeted unit test verifying MAC-filtered 24-hour uptime queries for selected inventory assets. - Ratcheted Coverage Gate (
coverage-threshold.txt): Locked code coverage ratchet threshold to 55.0% across all 349 passing tests.
Verification & Integrity
Verify downloaded binaries using the SHA-256 checksums in SHA256SUMS.txt:
Get-FileHash .\<filename> -Algorithm SHA256