Code Monkey home page Code Monkey logo

Comments (3)

l3nz avatar l3nz commented on September 27, 2024

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.

l3nz avatar l3nz commented on September 27, 2024

Please test it.
I see you are using the library seriously - why don't you write a "getting started" of sorts?

from ari4java.

modrljin avatar modrljin commented on September 27, 2024

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)

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.