Skip to content

Conversation

@shivasurya
Copy link
Owner

This PR adds couple of optimization to improve memory management and measure performance

  1. Optimized memory usage by cutting down storing source code raw string instead gone with sourcelocation pointer (huge boost 6GB for 200k functions to 1GB)
  2. Added benchmarking tools to measure memory usage, monitor memory shootup issues

@safedep
Copy link

safedep bot commented Oct 24, 2025

SafeDep Report Summary

Green Malicious Packages Badge Green Vulnerable Packages Badge Green Risky License Badge

Package Details
Package Malware Vulnerability Risky License Report

This report is generated by SafeDep Github App

@shivasurya shivasurya self-assigned this Oct 24, 2025
@shivasurya shivasurya added enhancement New feature or request go Pull requests that update go code labels Oct 24, 2025
@codecov
Copy link

codecov bot commented Oct 24, 2025

Codecov Report

❌ Patch coverage is 46.71815% with 138 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.83%. Comparing base (e8c98fd) to head (e3a70b6).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
sourcecode-parser/graph/query.go 30.64% 129 Missing ⚠️
sourcecode-parser/graph/types.go 0.00% 8 Missing ⚠️
sourcecode-parser/graph/parser_statements.go 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #316      +/-   ##
==========================================
- Coverage   75.83%   72.83%   -3.01%     
==========================================
  Files          22       23       +1     
  Lines        2566     2481      -85     
==========================================
- Hits         1946     1807     -139     
- Misses        580      634      +54     
  Partials       40       40              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@shivasurya shivasurya merged commit ebd01fa into main Oct 24, 2025
3 of 5 checks passed
@shivasurya shivasurya deleted the shiva/performance-fix-1 branch October 24, 2025 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants