facebook / folly

An open-source C++ library developed and used at Facebook.
https://groups.google.com/forum/?fromgroups#!forum/facebook-folly
Apache License 2.0
28.19k stars 5.54k forks source link

Custom Allocator Support for `folly::dynamic` and `folly::parseJson` #1531

Open johnnystackone opened 3 years ago

johnnystackone commented 3 years ago

I'm curious if there is any interest in adding support for custom allocators to folly::dynamic and folly::parseJson. I have a use case where JSON parsing is in a latency sensitive path and I have the latitude to do all of the allocation associated with parsing on the stack and using only copy and move semantics to extract values from the resulting folly::dynamic object.

Is there a way of achieving this currently and I missed it? If not would this be a welcome addition to the codebase?

Thanks!

gedanziger commented 3 years ago

I am also very interested in this.

daidai21 commented 3 years ago

I am also very interested in this.

+1