Skip to content

Memory-efficient outputs #224

@krystian-panek-vmltech

Description

@krystian-panek-vmltech

refactor Output so that it could be auto-flushed to the repository (by on-demand running flush() or by some policy (working similarly as https://github.com/wttech/acm/blob/main/core/src/main/java/dev/vml/es/acm/core/code/CodeOutputRepo.java )

the goal is to reduce a memory allocation if script will generate a lot of outputs. right now all of them will be allocated in the memory and memory will be released after saving history.

the target approach is to write outputs to /var/acm/file/ ... then on executionHistory.saveOutputs only flush them finally (and free memory / remaining buffer) and move them from that /var/acm/file to /var/acm/execution/history/{id}/.../outputFiles/{name}/file

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementImprovement to existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions