EngFlow / bazel_invocation_analyzer

A tool that automatically analyzes a Bazel build's profile and offers suggestions on how to make it faster.
https://analyzer.engflow.com
Apache License 2.0
90 stars 10 forks source link

[Performance] Read Bazel profile as a stream #165

Closed saraadams closed 10 months ago

saraadams commented 10 months ago

Instead of reading the Bazel profile all at once, use a stream to reduce memory consumption.

Benchmark with a Bazel profile of unzipped size 357MB Using YourKit as a profiler and checking the shallow size at the end of the BazelProfile constructor:

Before: 3.6 GB After: 349 MB

Contributes to #163