GithubHelp home page GithubHelp logo

Comments (7)

taowen avatar taowen commented on August 20, 2024 1

the jar size is < 100kb, I do not think it would be any kind of problem.
splitting the codebase will make other users hard to manage dependency. I will try to keep this library minimal. Really do not like the jackson style, a json library should not have more than one artifact.

from java.

taowen avatar taowen commented on August 20, 2024

You can use JsonIterator without any dependency. And jar itself is pretty small. What is the point of separating the codebase?

from java.

ekuleshov avatar ekuleshov commented on August 20, 2024

Thank you for consideration.

At very least it will make it much easier to ensure app doesn't have any System.out or reflection called at runtime and also will be easier to use jsoniter with Proguard code obfuscator and minifier for Android, especially when static dependencies being analyzed.

BTW, the jar size is close to Jackson's jar, but it could be much smaller.

from java.

ekuleshov avatar ekuleshov commented on August 20, 2024

I've got 200k+ jar built from the main branch. You already have dependent artifacts for jsoniter module - javassist and Jackson's annotations jar. Those are transparently managed with Maven or Gradle dependency management, so having "binding" module transiently depend on "stream" won't be any issue. Users who need "binding" will declare "binding" dependency and those who only need "stream" can declare "stream" only in their project pom or gradle files.

from java.

taowen avatar taowen commented on August 20, 2024

http://mvnrepository.com/artifact/com.jsoniter/jsoniter/0.9.5

the size is 76kb. javassist and jackson annotation is optional dependency

        <dependency>
            <groupId>org.javassist</groupId>
            <artifactId>javassist</artifactId>
            <version>3.21.0-GA</version>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-annotations</artifactId>
            <version>2.8.5</version>
            <optional>true</optional>
        </dependency>

from java.

ekuleshov avatar ekuleshov commented on August 20, 2024

If you download that jar you will see 200k. Size shown on that web page is not correct.
IMHO, optional dependencies make it even worse. You have to guess which ones to add to your project.

from java.

taowen avatar taowen commented on August 20, 2024

ok, you are right. Please make a fork, as you wish. I expect most people will use bind-api or any-api.

from java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.