flatbuffers icon indicating copy to clipboard operation
flatbuffers copied to clipboard

Add Span params for CreateXXX in C#

Open ODtian opened this issue 9 months ago • 5 comments

Currently, when the fixed-length array in the structure is initialized using Create, the parameter type is an array. This is not conducive to reducing GC overhead. Adding an interface that takes Span as a parameter is more friendly to 0GC programs.

ODtian avatar Feb 12 '26 18:02 ODtian

this sounds like a great feature to add -- is this the same construct as C++ spans? Would this change be backward compatible if we just updated the api instead of adding an additional one?

I would love to see a PR for this I think.

jtdavis777 avatar Feb 19 '26 00:02 jtdavis777

@jtdavis777 @ODtian Can I work on this? I am really interested!

statxc avatar Mar 11 '26 03:03 statxc

Go for it!

jtdavis777 avatar Mar 11 '26 11:03 jtdavis777

This issue is stale because it has been open 6 months with no activity. Please comment or label not-stale, or this will be closed in 14 days.

github-actions[bot] avatar Sep 09 '26 20:09 github-actions[bot]

This issue was automatically closed due to no activity for 6 months plus the 14 day notice period.

github-actions[bot] avatar Sep 23 '26 20:09 github-actions[bot]