Comments (7)
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.
You can use JsonIterator without any dependency. And jar itself is pretty small. What is the point of separating the codebase?
from java.
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.
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.
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.
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.
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)
- hma HOT 1
- Codegen fails to generate Enum decoder if Enum has overriden toString() method
- No constructor for: interface io.netty.Channel
- `indentionStep` has no effect on `com.jsoniter.any.Any`
- In the micro-benchmark test, the jsoniter serialization performance seems to be a bit poor
- java 17 NPE
- duplicate class definition for name: "com/jsoniter/IterImpl" when use treaming processing HOT 1
- Aplicación del patrón de diseño "Strategy"
- Aplicación del patrón de diseño Decorator
- Aplicacion del patron de diseño Strategy 2
- Reporte Refactoring 1
- Reporte refactoring 2 HOT 1
- Java 17 support & java-json-benchmark HOT 5
- Concerns regarding the way jsoniter is implemented for high performance parsing
- Java HOT 1
- Json java
- helloworld
- 递归循环报错,引发StackOverflowError HOT 1
- JsonStream.serialize error,cause StackOverflowError HOT 1
- Failed to serialize datetime fields HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java.