Skip to content
This repository has been archived by the owner on Jan 14, 2023. It is now read-only.

Storing fields in MessageFields as indexed List instead of multiple Maps #51

Open
wants to merge 1 commit into
base: obsolete/master
Choose a base branch
from

Conversation

pcernocky
Copy link

MessageFields contains 3 HashMaps which are created and populated for each message. That is both slow and memory hungry.
Very well observable when sending MarkerArray messages containing many Markers at high rate, especially on Android (slow and OOM).
This fix replaces HashMaps with ArrayList in MessageFields and moves the HashMaps logic to MessageContent.
Speed and memory improvements are more than noticable.

@adamantivm adamantivm changed the base branch from master to obsolete/master December 16, 2016 14:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant