Daniel Lemire
Daniel Lemire
Merging.
@targos Why is this not using std::bit_cast? https://en.cppreference.com/w/cpp/numeric/bit_cast
As such, we don’t support this case, however clever algorithms are indeed possible. Whether they are relevant to your use case is difficult to tell in the abstract.
Ok. Well, we can discuss it. Suppose you want percentile p for some value of p. Then you could could iteratively build two heaps, one containing values that are "large"...
Anyhow, I am available and interested in collaborating.
> It could be that there is something related to parsing numbers (which is a little slow in simdjson, but it should still be faster) It is *generally* a challenging...
> I know this library was made to handle large JSON file The simdjson library itself is faster even on small files.
cc @croteaucarine @jkeiser
@RichardWright I cannot speak specifically for this library but one general concern is that constructing the full JSON representation in JavaScript, with all the objects, strings, arrays... is remarkably expensive....