Skip to content

Store site in tsk_variant_t struct #2161

Closed

Description

@jeromekelleher

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.

Activity

  1. added
    C API
    on Mar 17, 2022
  2. added this to the C API 1.0 milestone on Mar 17, 2022
  3. benjeffery commented on Mar 17, 2022

    @benjeffery
    Member

    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.

  4. changed the title [-]Make store site in tsk_variant_t struct[/-] [+]Store site in tsk_variant_t struct[/+] on Mar 17, 2022
  5. jeromekelleher commented on Mar 17, 2022

    @jeromekelleher
    MemberAuthor

    It only affects users of vargen, who we're sort-of breaking anyway, so it's probably worthwhile I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C API

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions