Skip to content

New progress logging interface? #7

@tkf

Description

@tkf

Edit: Originally it was about using gensym for _id. But it turned out there are many aspects that may require re-design.


IMHO using gemsym dynamically is not really the best practice as it leaks memory. It also is slow compared to (say) UUID

julia> @btime uuid4();
  11.958 ns (0 allocations: 0 bytes)

julia> @btime gensym();
  1.082 μs (0 allocations: 0 bytes)

These are not very critical problems but it's nice if we can avoid it. I think we can easily avoid it by introducing a new key value (say) progressid such that

@logmsg ProgressLevel name progress=0.1 progressid=id

is used instead of

@logmsg ProgressLevel name progress=0.1 _id=id

Then id can be of any type. The easiest thing to use may be uuid4().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions