Agents generate less garbage while working #3

Closed
wants to merge 1 commit into
from

Projects

None yet

1 participant

@osi

This patch removes the call to 'count' during an agent's processing, which is just an 'is-empty' test, which can also be achieved by a null test on the peek.

Overall, 'count' seems to generate a lot of garbage, the holistic reduction of which would be out-of-scope for a simple patch on a maintenance branch.

@osi osi GC tuning for agents
Don't call count, which can be expensive. Just peek and if its not null, treat that
as being > 0
16d2688
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment