You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following up from #2160, the tsk_variant_t struct has a pointer to a tsk_site_t object stored in it. We could just as well store the site struct directly in the variant, thereby avoiding a malloc and a bit of pointer chasing.
If this doesn't break too much code, I think it'd be worth doing.
I contemplated this while doing the recent changes but was hesitant as it is an API change, albeit a small one. Probably worth doing before 1.0 though.
Activity
benjeffery commentedon Mar 17, 2022
I contemplated this while doing the recent changes but was hesitant as it is an API change, albeit a small one. Probably worth doing before 1.0 though.
[-]Make store site in tsk_variant_t struct[/-][+]Store site in tsk_variant_t struct[/+]jeromekelleher commentedon Mar 17, 2022
It only affects users of vargen, who we're sort-of breaking anyway, so it's probably worthwhile I think.