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: CLAUDE.md
+34-14Lines changed: 34 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
4
4
5
5
## Project Overview
6
6
7
-
This is a TypeScript monorepo for AlienFast logger packages, managed with Lerna and built with Vite. The project provides logging functionality across three main packages:
7
+
This is a TypeScript monorepo for AlienFast logger packages, managed with Lerna and built with tsdown. The project provides logging functionality across three main packages:
8
8
9
9
-`@alienfast/logger` - Core logging interfaces and functionality
Copy file name to clipboardExpand all lines: PERFORMANCE.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,12 +21,14 @@ LogWriter implementations check log levels before expensive operations like time
21
21
## Performance Characteristics
22
22
23
23
**When log levels are set to WARN/ERROR:**
24
+
24
25
- Debug/info calls have near-zero overhead (< 0.001ms per call)
25
26
- Spread operator overhead eliminated for disabled log levels
26
27
- Object serialization optimized with efficient cycle detection
27
28
- Timestamp and formatting operations skipped when not needed
28
29
29
30
**Backward Compatibility:**
31
+
30
32
- All existing APIs work unchanged
31
33
- No migration required
32
34
- Performance improvements are automatic
@@ -45,4 +47,4 @@ The optimizations work at three levels:
45
47
-**Production configuration**: Set system threshold to WARN or ERROR for optimal performance
46
48
-**Complex objects**: Benefits are automatic when logging objects with circular references
47
49
48
-
The optimizations ensure that production applications with logging set to WARN+ experience minimal performance impact from debug/info logging statements.
50
+
The optimizations ensure that production applications with logging set to WARN+ experience minimal performance impact from debug/info logging statements.
0 commit comments