-
-
Notifications
You must be signed in to change notification settings - Fork 261
NewCarbon() performance optimization #319
Copy link
Copy link
Closed
Description
Hey, I compared versions v2.6.2 and v2.5.0 and found that the NewCarbon() method in 2.6.2 might have performance issues.
- v2.5.0 fetches Location via
time.LoadLocation()— system call overhead - v2.6.2 fetches Location via
ReadFile+Unmarshal— I/O + JSON processing introduces performance loss
Performance optimization for v2.6.2 could be achieved through caching.
I'll attempt a PR if feasible.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels