`vizviewer` parses the entire trace file just to read `file_info`
Author: akxCreated Mar 26, 2026Updated Sep 17, 2026
I noticed vizviewer reads the entire JSON file into memory, parses it into JSON, just to read file_info from it, then throws it away:
For my current investigation, report.json is 2.7 gigabytes and it takes 13 seconds for orjson to parse it, which seems unnecessary, since my browser will be parsing it again anyway.
If file_info is crucial for things to work, it would probably be neat to save it separately (e.g. as a report.json.file_info sidecar) while the report file is being saved in the first place.
EDIT: this may be related to #308, #533.
Source: gaogaotiantian/viztracer