Skip to content

Memory usage of struct STUN_CLIENT_DATA #19

@SStorm

Description

@SStorm

Hey there, in the current implementation the STUN_CLIENT_DATA struct is more than 130k, having statically allocated a whole bunch of things. This makes it fairly hard to use in embedded scenarios, where that much isn't available. The main culprit is STUN_TRANSACTION_DATA of which there is 60 x 2200b allocated. I'm planning on working to shrink down this memory usage, firstly by being able to define your own MAX_STUN_TRANSACTIONS, however would like to take it down to something sub-5k. Any tips/ideas how you would go about doing so? There's a bunch of statically allocated strings (i.e. stun username) that could be smaller if they aren't needed (i.e. using a public STUN server).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions