Skip to content

Reduce spdm context size by using heap for arrays for certs#317

Open
IntelCaisui wants to merge 1 commit intoccc-spdm-tools:mainfrom
IntelCaisui:POC_251225_SPDM_CONTEXT_SIZE_TEST_WITH_BUFFERS
Open

Reduce spdm context size by using heap for arrays for certs#317
IntelCaisui wants to merge 1 commit intoccc-spdm-tools:mainfrom
IntelCaisui:POC_251225_SPDM_CONTEXT_SIZE_TEST_WITH_BUFFERS

Conversation

@IntelCaisui
Copy link
Copy Markdown
Contributor

The spdmlib is consuming memory for arrays that are mostly unused,
and these arrays are sliently copied around in function calls.
This change moves these arrays to heap allocations and move the
references rather than tranferring the whole arrays.

@IntelCaisui IntelCaisui force-pushed the POC_251225_SPDM_CONTEXT_SIZE_TEST_WITH_BUFFERS branch from 67fa0b0 to 475225d Compare January 8, 2026 08:28
The spdmlib is consuming memory for arrays that are mostly unused,
  and these arrays are sliently copied around in function calls.
This change moves these arrays to heap allocations and move the
  references rather than tranferring the whole arrays.
@IntelCaisui IntelCaisui force-pushed the POC_251225_SPDM_CONTEXT_SIZE_TEST_WITH_BUFFERS branch from 475225d to 10c4c93 Compare January 8, 2026 08:33
@IntelCaisui IntelCaisui closed this Jan 8, 2026
@IntelCaisui IntelCaisui reopened this Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant