Comments (3)
While I'm not especially in love with Jackson, I think the reason why it is so slow is that the Object Mapper used to be re-created on every invocation. This is a known anti-pattern. I'm fixing this.
Please let me know how it goes.
from ari4java.
Please test it.
I see you are using the library seriously - why don't you write a "getting started" of sorts?
from ari4java.
Great job! Now it works much better. CPU usage from my java app is now about the same as from asterisk. Now, deserializeJson() now takes double less time than onSuccess() handled in my app, while before it took about 10 times more time.
You are correct, I'm trying to use it seriously, you don't? But I'm not really sure what do you mean by asking me to write "getting started of sorts"? You mean if I could write "getting started" manual for ari4java library? Hmm, your README looks quite fine to me. and you know it much better. To be honest, there are few things that I don't understand in your code, e.g. why ARI.setupAction(Object a) "smells bad" according your comment on method and getActionImpl() should be used instead. Currently I'm using setupAction() from other methods, e.g. channels(), ... and everything looks just fine to me.
I'm willing to help you in this project and if you are interested, show you what I'm working on, but probably we should switch to private messaging then, just to make some discussion before. Maybe we can help each other.
from ari4java.
Related Issues (20)
- Fix generated classes JavaDoc
- Getting HTTP 404 on endpoints request even though if a plain HTTP request returns the correct response HOT 2
- Channel not in stasis-application HOT 2
- Asterisk 17.3.0 Released HOT 1
- WS reconnect HOT 5
- onFailure is called a long time after the cause "WS Connect Error:"
- WS destroy HOT 4
- Hacktoberfest HOT 1
- How to set variables to channels with setChannelvars? HOT 1
- Migration to MavenCentral HOT 4
- Statement Fail - ariClient.playbacks().stop(playbackId).execute() - (DELETE /ari/playbacks HTTP/1.1) HOT 4
- ARI_6_0_0 channels API is missing the externalMedia call HOT 1
- Update to Netty 4.1.64 to prevent StackTraces in logs when using Java >= 11 HOT 1
- [BUG] ARI RTPStats Decode exception for remote_ssrc HOT 4
- N
- Netty RedTimeOut HOT 4
- Unable to get channelVars HOT 2
- Vagrant on Apple Silicon Changes
- protocol_id field in Channel_impl_ari_6_0_0 HOT 3
- Update API to 20.2? 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 ari4java.