Skip to content
This repository was archived by the owner on Aug 21, 2023. It is now read-only.

Conversation

@washu
Copy link
Contributor

@washu washu commented Oct 2, 2019

memory fixes and crystal 0.30.1 update

washu added 30 commits October 1, 2019 09:44
…ed struct not an intialized on, with a warning it will leak if initialized.
…sure why , but caling append array, then append doc caused a segfault invalid memory location .Invalid memory access (signal 11) at address 0x0
several memory fixes have been applied due to valgrind findings and spec details reviewd
several memory fixes have been applied due to valgrind findings and spec details reviewd
…y for converting hash and arrays to bson objects,

I instead updated the appropiate items, so we will to_json(io) on the hash or array, then let the lib allocate and manage creation of the bson object, as append document needs an unitialized struct to prevent memory leaks, however in recursive looping down to serial a hash to bson or array to bson, intermeidate bson pointers are leaking after 2nd level depth i.e. {"$or" => [{ "field" =>{ "$lte" : 1 },{ "field" =>{ "$gte" : 3 }] } will leak. ne method doesnt leak at all, and benchmark looks ok
…pected. override tiem tojosn for bson format
@marzhaev
Copy link

Great work!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants