Closed masatake closed 5 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 85.39%. Comparing base (
dd87bd3
) to head (1ff4e9d
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
When queuing a tagEntryInfo to the cork queue, sourceFileName was strdup'ed. However, in many cases, the strings for entries in the queue have the same value. We can reduce memory allocations by using the same buffer as we did in the inputFileName member.
Under massif, I measured the peek memory usage of ctags processes indexing the source tree of the Linux kernel.
Without this change, the peak is 132.7 MiB. With this change, the peak is 121.9 MiB.