BoltEngine / Bolt-Tracker

New issue tracker for Photon Bolt
10 stars 2 forks source link

IProtocolTokens generate quite a bit of garbage when added up #85

Closed cjddmut closed 4 years ago

cjddmut commented 6 years ago

How to reproduce issue

  1. Use protocol tokens, especially in the command response stack

Expected Behavior

Should generate less garbage. Either through restructure or using token pools.

Actual behavior

Garbage! We use a lot of tokens and have a lot of garbage to show for it.

Configuration

ramonmelo commented 4 years ago

Hello @cjddmut ,

We've implemented a pooling system for the IProtocolTokens that should help to reduce the memory usage when dealing with Tokens. It will be available on the next release.

Thanks for your feedback.