-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Description
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=idis used instead of
@logmsg ProgressLevel name progress=0.1 _id=idThen id can be of any type. The easiest thing to use may be uuid4().
c42f
Metadata
Metadata
Assignees
Labels
No labels