Comments (6)
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.
Strange. I'll check this and get back to you.
Michel
from bson4jackson.
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.
No, it is hex encoded. Sorry - should have mentioned that.
I will create an executable project. Just give me a few days.
from bson4jackson.
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.
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)
- Version 2.13 does not contain OSGi metadata anymore HOT 2
- UTF-8 conversion is significantly slower with BSON than regular JSON HOT 4
- Create 2.8 version for Jackson 2.8 HOT 9
- Reopen issue #35 HOT 1
- Leading 4 bytes are all zeroes HOT 16
- How to enable a feature in BsonGenerator.java ? HOT 8
- unexpected block in ObjectMapper.readValue() in BSON streaming situation HOT 1
- BigDecimal precision HOT 1
- BsonGenerator does not handle null values correctly HOT 3
- BsonFactory doesn't override 'createParser(DataInput in)' method HOT 2
- UnsafeByteArrayInputStream.read for bytes >= 0x80 returns negative integer, caller thinks "Oh, EOF" HOT 1
- Buffer caching for heavy multithreaded load HOT 6
- Release 2.10.x version (+ test and document compatibility with Jackson 2.10.x)
- Failed to deserialize object HOT 2
- com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input HOT 2
- Support for Jackson 2.12 HOT 2
- ObjectId no longer compatible with mongodb ObjectId
- Decimal128 should extend Number & implement Comparable
- Serialization performance with large objects HOT 1
- IllegalStateException found when fuzzing bson4jackson 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 bson4jackson.