Skip to content

Support IBufferDistributedCache#593

Draft
Inok wants to merge 3 commits intoZiggyCreatures:mainfrom
Inok:buffer-cache
Draft

Support IBufferDistributedCache#593
Inok wants to merge 3 commits intoZiggyCreatures:mainfrom
Inok:buffer-cache

Conversation

@Inok
Copy link
Contributor

@Inok Inok commented Feb 4, 2026

A prototype of IBufferDistributedCache support.

Efficient buffered serialization requires a breaking change in the serializer's interface. I started with a different approach, introducing IBufferFusionCacheSerializer instead. It's backward-compatible and allows to opt out of this feature by those who use custom serializers.

I haven't measured the overall perf carefully yet, but the serialization part looks promising: somewhat faster and with much less memory allocation.

That said, there are still things to improve (e.g., tests), and of course I'm not pushing with a separate interface. Breaking the existing IFusionCacheSerializer and making v3 is also an option. Or it can be both: separate interface first, merge them later in v3.

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