-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve stats display performance and formatting
This commit improves the stats command in several ways: 1. Performance Improvements: - Pre-calculate display statistics during cache refresh - Store formatted stats in cache to avoid recalculation - Remove unnecessary parallel processing for small datasets - Optimize data structures with pre-allocated maps 2. Display Formatting: - Fix table header centering to match table width exactly - Restore table styling from user configuration - Add proper borders and separators based on config - Fix language statistics formatting 3. Code Organization: - Move display logic to dedicated structs - Add proper type registration for gob encoding - Improve error handling in cache operations The stats command now runs in sub-second time and maintains consistent formatting across different terminal sizes.
- Loading branch information
1 parent
2b7e3fc
commit d979cba
Showing
5 changed files
with
1,091 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.