Answer the question
In order to leave comments, you need to log in
Which PL is more efficient with memory, but also easy to learn?
Hello!
Periodically, there are tasks for processing (sorting, deduplication, intersection / difference / union of sets) huge (1-20 million rows) arrays of homogeneous data in real time, i.e. time requirements no more than 1 second, preferably no more than 100 ms. In this case, dozens and hundreds of requests can be processed in parallel. The current PHP solution catastrophically eats up all the memory and the number of simultaneously processed requests cannot exceed a couple of three.
There is an idea to implement such things on any other PL. Ideally, a PL should have adequate libraries for working with Json, MySQL / PostgresQL, etc. At a glance, I looked at Python, although there are fewer, there are still overheads for storing variables in memory. Pure C seems monstrous and not user friendly. Maybe GoLang, but somehow I can't find its details on memory consumption...
Answer the question
In order to leave comments, you need to log in
Go seems to be one of the best options. From memory, it is almost like C, except for the presence of GC.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question