DescriptionThis further reduces the initial heap size by ~2 MB. The reason this happens is that there are duplicate entries for some Subscription objects in some Filter objects.
For example, this filter: ##.adblock_floating_message
It occurs twice in the Adblock Warning Removal List, hence there are two entries in its subscriptions array for the same Subscription object. By using a Set we eliminate the duplicates. In a number of places we also don't have to check if the Subscription object already exists in the list before performing an operation like add or delete.
I'm also seeing a very slight speed-up in the parsing/loading of the initial subscriptions.
Patch Set 1 #
MessagesTotal messages: 3
|