top | item 34741428

(no title)

comrad | 3 years ago

Just because it is in C++ it is supposed to be faster? I highly doubt that.

discuss

order

Shorel|3 years ago

No, just because it's in C++ does not mean it is automatically faster.

However, with good enough algorithms and judicious coding and memory management, the possibility exists.

danudey|3 years ago

Also, architectural changes. They describe how ES can't parallelize a query unless it's spread across multiple index shards, which has its own tradeoffs. Their query engine can parallelize a query on a single index shard, which means it scales much more linearly on more cores without having to make those tradeoffs.

pjmlp|3 years ago

Same can be said by Java, even without direct support for value types.

Plus it doesn't need to be Java xor C++, JNI exists for a reason (now Panama).

janmo|3 years ago

It is, and also it is the way c/c++ makes you write code.

Languages such as Java or PHP make you lazy and you end up using the string variable type a lot. It is extremely inefficient.

Conscat|3 years ago

C/++ actually make you write relatively slow code too, by default. Not to the extent of Java, but still there is HUGE room for improvement in libC and by extension the STL. I'm working on a slash-and-burn approach to the problem here: https://github.com/cons-cat/libcat