tecosaur / About.jl

Mirror of https://code.tecosaur.net/tec/About.jl
Mozilla Public License 2.0
119 stars 6 forks source link

`about(:abc)` told me to file an issue #18

Open miguelraz opened 4 weeks ago

miguelraz commented 4 weeks ago

so here it is 😄

tecosaur commented 4 weeks ago

Thanks Miguel! For anyone curious and my own reference when I sit down to look at this, what's going on is due to the interning of Symbols, the interned value takes up N bytes but instances of the symbol don't. More specifically, Base.summarysize reports 0, but I don't think that's quite right.

julia> about(:abc)
Symbol (mutable) (<: Any)
 Memory footprint: 3B directly (! referencing 0B in total, strangely less than the direct, please open an issue on About.jl with this example)