You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Michael Russo (JIRA)" <ji...@apache.org> on 2016/02/03 01:18:39 UTC

[jira] [Updated] (USERGRID-1245) Find alternative to com.clearspring.analytics

     [ https://issues.apache.org/jira/browse/USERGRID-1245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Russo updated USERGRID-1245:
------------------------------------
    Sprint: Usergrid 34

> Find alternative to com.clearspring.analytics
> ---------------------------------------------
>
>                 Key: USERGRID-1245
>                 URL: https://issues.apache.org/jira/browse/USERGRID-1245
>             Project: Usergrid
>          Issue Type: Story
>    Affects Versions: 2.1.0
>            Reporter: Jeffrey 
>            Assignee: Michael Russo
>             Fix For: 2.1.1
>
>
> com.clearspring.analytics.hash.MurmurHash is found in the fasterutil dependency which is 16MB.  We want to pare down the size of the REST WAR file.  Let's see if there is an alternative.
> Here is the maven dependency:
> {code}
>     <dependency>
>       <groupId>com.clearspring.analytics</groupId>
>       <artifactId>stream</artifactId>
>       <version>2.7.0</version>
>     </dependency>
> {code}
> Look for the com.clearspring.analytics package.  Seems to be used in GCM Adapter:
> {code}
>    private Batch getBatch( Map<String, Object> payload) {
>        synchronized (this) {
>            long hash = MurmurHash.hash64(payload);
>            Batch batch = batches.get(hash);
>            if (batch == null && payload != null) {
>                batch = new Batch(notifier, payload);
>                batches.put(hash, batch);
>            }
>            return batch;
>        }
>    }
> {code}
> Also the CountMinSketch is used from this dependency:
> org/apache/usergrid/services/notifications/impl/ApplicationQueueManagerImpl.java:111
> {code}
> final CountMinSketch sketch = new CountMinSketch(0.0001,.99,7364181); //add probablistic counter to find dups
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)