Giter Club home page Giter Club logo

Comments (6)

jschneider avatar jschneider commented on June 8, 2024

I did a little bit of profiling:

  • most time (about 50%) is lost in LittleEndianInputStream.readUTF.
  • UTF_8.newDecorder takes about 6% of the time. Maybe the CharsetDecorder instance might be cached?
  • about 6% in CharsetDecorder.decode

from bson4jackson.

michel-kraemer avatar michel-kraemer commented on June 8, 2024

Strange. I'll check this and get back to you.

Michel

from bson4jackson.

michel-kraemer avatar michel-kraemer commented on June 8, 2024

I tried to reproduce your example, but I get an exception reading your sample file. I suppose it's base64 encoded, but still no luck. Maybe you can send me the original file and also your test code via email? Thanks a lot!

Michel

from bson4jackson.

jschneider avatar jschneider commented on June 8, 2024

No, it is hex encoded. Sorry - should have mentioned that.
I will create an executable project. Just give me a few days.

from bson4jackson.

michel-kraemer avatar michel-kraemer commented on June 8, 2024

Oh. I should have figured that out myself!

No worries. No need for a sample project. I was able to reproduce the issue. I'll see what I can do.

Michel

from bson4jackson.

michel-kraemer avatar michel-kraemer commented on June 8, 2024

OK. I was able to improve the performance a lot by replacing ByteArrayInputStream and BufferedInputStream from the JDK by my own implementations that are not thread safe (96d09f8).

However, I think there's still room for improvement. I will continue work on this issue.

Cheers,
Michel

from bson4jackson.

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.