Comments (3)
We actually had an internal debate over this topic. BigDecimal keeps precision when you do calculations. However, this library mostly just parses JSON into objects and hardly has any calculation. Using BigDecimal makes things slower with no gain.
from io.contek.invoker.
from io.contek.invoker.
The actual performance impact very much depends on what you want to do with the numbers.
The philosophy in this project is to have minimal assumptions meaning it should do no more than parsing JSON into plain old objects.
In our case, we have an internal layer on top of this lib, which is a unified GRpc API. We don't want to convert JSON strings/numbers into BigDecimals and then convert them back to doubles again.
from io.contek.invoker.
Related Issues (20)
- ConsumerState HOT 9
- Break statement HOT 3
- Wrong endpoint path HOT 1
- 你好 HOT 1
- FTX rate limits HOT 1
- Primitives in response models HOT 1
- Gate.io support
- Correct JDK version HOT 1
- Binance spot Order Book Ticker API returns an object instead of array
- Incorrect import
- Inconsistent dependencies in okhttp
- Different between bybitliner and bybit
- 怎么用?
- 批量下单撤单功能
- binancelinear WebSocketCommand should be public
- ForceOrderEvent.Order wrong filed
- Bitmex _Instrument missing fields
- Bybit linear open_interest should be Double
- Add Bybit V5 API HOT 2
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 io.contek.invoker.