[ 
https://issues.apache.org/jira/browse/AVRO-1502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14194769#comment-14194769
 ] 

Tom White commented on AVRO-1502:
---------------------------------

I wrote a test that writes 10 million specific objects to an ObjectOutputStream 
(in memory to avoid file IO overhead). With the static writer member it is just 
over 10% faster, so we should leave it as an optimization.

Code is at https://github.com/tomwhite/avro-1502-perf-test. Here's the test I 
did:

{noformat}
> withstatic = c(23637,23261,22936,22664,23097,23395,22972,22650,22747,22869)
> withoutstatic = c(25568,25648,25769,25681,26084,25741,25542,25509,25686,26128)
> t.test(withstatic,withoutstatic)

        Welch Two Sample t-test

data:  withstatic and withoutstatic 
t = -22.0512, df = 15.484, p-value = 4.082e-13
alternative hypothesis: true difference in means is not equal to 0 
95 percent confidence interval:
 -2974.304 -2451.296 
sample estimates:
mean of x mean of y 
  23022.8   25735.6 
{noformat}

> Avro objects should implement Serializable
> ------------------------------------------
>
>                 Key: AVRO-1502
>                 URL: https://issues.apache.org/jira/browse/AVRO-1502
>             Project: Avro
>          Issue Type: New Feature
>          Components: java
>            Reporter: Jeff Hammerbacher
>            Assignee: Doug Cutting
>             Fix For: 1.8.0
>
>         Attachments: AVRO-1502.patch, AVRO-1502.patch, 
> serializeable_base.patch
>
>




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

Reply via email to