Title: Add compression for output file with gzip and MessagePack. Add inbuil… by rahlk · Pull Request #7 · codellm-devkit/codeanalyzer-python · GitHub
Open Graph Title: Add compression for output file with gzip and MessagePack. Add inbuil… by rahlk · Pull Request #7 · codellm-devkit/codeanalyzer-python
X Title: Add compression for output file with gzip and MessagePack. Add inbuil… by rahlk · Pull Request #7 · codellm-devkit/codeanalyzer-python
Description: Add output format flag with MessagePack compression support Address issue #6 by implementing a --format flag that allows users to choose between compact JSON and ultra-compressed MessagePack output formats, achieving 80-90% size reduction for large analysis results. Motivation and Context Large Python codebases generate analysis results that can be several megabytes in size when output as pretty-printed JSON. This creates problems for: Storage efficiency: Large files consume unnecessary disk space Transfer speed: Slow uploads/downloads in CI/CD pipelines Processing performance: Large JSON files are slower to parse Network bandwidth: Inefficient for distributed analysis workflows This change addresses these issues by providing format options optimized for different use cases while maintaining full data fidelity. How Has This Been Tested? ✅ Real codebase testing: Tested on large Python projects (1000+ files) ✅ Format validation: Both JSON and MessagePack outputs validated ✅ Round-trip testing: Serialization → deserialization preserves all data ✅ Compression verification: Confirmed 80-90% size reduction on real data ✅ Error scenarios: Invalid format options handled gracefully ✅ Backward compatibility: Existing workflows continue unchanged Example compression results on real project: ❯ uv run codeanalyzer --input $PWD -vvv --output /tmp --format=msgpack --keep-cache Building symbol table ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 21/21 files 0:00:04 0:00:00 [07/11/25 00:41:57] INFO ✅ Symbol table generation complete. INFO Analysis saved to /tmp/analysis.msgpack INFO Compression ratio: 9.2% of JSON Breaking Changes None. This is a fully backward-compatible addition: Default behavior remains unchanged (compact JSON output) All existing CLI commands work exactly as before No changes to programmatic APIs Types of changes New feature (non-breaking change which adds functionality) Bug fix (non-breaking change which fixes an issue) Breaking change (fix or feature that would cause existing functionality to change) Documentation update Checklist I have read the [Codellm-Devkit Documentation](https://codellm-devkit.info) My code follows the repository's style guidelines New and existing tests pass locally I have added appropriate error handling I have added or updated documentation as needed Additional context N/A
Open Graph Description: Add output format flag with MessagePack compression support Address issue #6 by implementing a --format flag that allows users to choose between compact JSON and ultra-compressed MessagePack output...
X Description: Add output format flag with MessagePack compression support Address issue #6 by implementing a --format flag that allows users to choose between compact JSON and ultra-compressed MessagePack output...
Opengraph URL: https://github.com/codellm-devkit/codeanalyzer-python/pull/7
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:69363537-a82f-c2cc-55b9-871340404aff |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | A1CC:E675E:3B3672:52CA87:698DF20A |
| html-safe-nonce | 6a3c2fc094732955bf9f6d7a20fc306d0c6916bd9b4688acc611f07d26f42448 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUNDOkU2NzVFOjNCMzY3Mjo1MkNBODc6Njk4REYyMEEiLCJ2aXNpdG9yX2lkIjoiNDc2OTg2MDYxMTkxODkxODE1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 99d758dcd0b0eb9556678ab127546db1919f7de073ae906b8a99eef2dd44ff2a |
| hovercard-subject-tag | pull_request:2657891361 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/codellm-devkit/codeanalyzer-python/pull/7/checks |
| twitter:image | https://avatars.githubusercontent.com/u/1433964?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1433964?s=400&v=4 |
| og:image:alt | Add output format flag with MessagePack compression support Address issue #6 by implementing a --format flag that allows users to choose between compact JSON and ultra-compressed MessagePack output... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae22ef6ad27c5aeb770c5acd314c5724055bb23a663877aafdaaa50ed317ba34 |
| turbo-cache-control | no-cache |
| go-import | github.com/codellm-devkit/codeanalyzer-python git https://github.com/codellm-devkit/codeanalyzer-python.git |
| octolytics-dimension-user_id | 197800760 |
| octolytics-dimension-user_login | codellm-devkit |
| octolytics-dimension-repository_id | 978344904 |
| octolytics-dimension-repository_nwo | codellm-devkit/codeanalyzer-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 978344904 |
| octolytics-dimension-repository_network_root_nwo | codellm-devkit/codeanalyzer-python |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e545f5becd5b3ce9b429b68c3f994ad93c680ddb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width