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

Scott Carey commented on AVRO-791:
----------------------------------

How about avro-tools-VERSION-nodeps.jar, with a maven classifier of 'nodeps'?  
That should be pretty easy to do with a minor pom change, I'll have a look at 
it in a few days.

The thrift-protobuf-compare benchmark requires it, and others call the tools 
classes directly instead of by command-line.

Off-topic FYI  RE benchmarks:
There are some changes to the benchmark code and Avro that can speed up the 
thrift-protobuf-compare stuff.  If Utf8 is 'more lazy' and doesn't create a 
byte array initially when constructed from a String, that helps.  Replacing 
some of the 
for (type thing : things) loops in the harness code with 
for (int counter; condition; increment) loops helps some.   The harness 
overhead is high, time is mostly in String to Utf8 conversions, 
GenericDatumReader/Writer, and the harness -- almost nothing is in the low 
level serialization/deserialization.  Because of the requirement to extract 
their object from our IndexedRecords, the Reflect API is probably fastest here 
-- we can avoid the extra copy step and produce the exact object type. 

> Split avro-tools jar in 1.5.0 to one contains avro tool classes and one 
> contains external dependencies
> ------------------------------------------------------------------------------------------------------
>
>                 Key: AVRO-791
>                 URL: https://issues.apache.org/jira/browse/AVRO-791
>             Project: Avro
>          Issue Type: Wish
>          Components: java
>    Affects Versions: 1.5.0
>            Reporter: Xiaolu Ye
>             Fix For: 1.5.1
>
>
> Currently, avro-tools.jar for 1.5.0 contains both avro specific tools classes 
> from org.apache.avro.tool and many external dependencies like org.slf4j.impl. 
> The problem is that if i define my own logback impl for slf4j in my pom, it 
> conflicts with the org.slf4j.impl.StaticLoggerBinder.class in avro-tools. It 
> would be better to split it to two jars: one only contains avro specific 
> tools, and another one only contains external dependencies

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to