Skip to content

Draft: Transition json encoding/decoding to goccy/go-json

Oscar Tovar requested to merge add-profiling-capability into master

What does this MR do?

This MR is an exploration in reducing the memory footprint of the gemnasium analyzers and in the future the sbom generators. The biggest consumer of memory is the JSON encoding/decoding that occurs when we parse packages/dependencies from files. The move to github.com/goccy/go-json brings a lot of improvements that help here like the removal of reflection.

before

image

after

image

What are the relevant issue numbers?

N/A

Does this MR meet the acceptance criteria?

Edited by Oscar Tovar

Merge request reports