reduced object allocations in the heartbeat dispatching code.
Merge pull request #443 from ne0fhyk/fix_heartbeat_object_allocation_issue

Issue #432: Extra Garbage collection fix