Jeffrey  created USERGRID-1245:
----------------------------------

             Summary: Find alternative to com.clearspring.analytics
                 Key: USERGRID-1245
                 URL: https://issues.apache.org/jira/browse/USERGRID-1245
             Project: Usergrid
          Issue Type: Story
            Reporter: Jeffrey 
            Assignee: Michael Russo


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:

{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)

Reply via email to