Aleksei Milovidov "Let's optimize one aggregate function in ClickHouse"Fwdays
油
Let's calculate an average of one column for each key, like the following query: SELECT key, avg(value) FROM table GROUP BY key. What can be more simple? But the question is: what is the most efficient way to do it? How to write code to achieve maximum performance on a variety of hardware?
JS Fest 2019/Autumn. Adam Leos. So why do you need to know Algorithms and Dat...JSFestUA
油
During the presentation, we will consider what advantages a front-end developer will get from knowledge of algorithms and data structures.
We will analyze real-world examples where this knowledge simplified logic and accelerated applications dramatically.
And finally we will understand the most necessary things that will allow us to determine the effectiveness of the code and easily improve it.
9. 舒从 仂亠仆亳 从仂仂?
仂弍亠仄 仍舒亠 于 亰舒[fail]亳亠, 仗仂仂仄 仂:
∃仂亟仆亠 亟舒仆仆亠 舒亰仆亠
∃亠舒仍亳亰舒亳 亢亠仍亠亰舒 舒亰仆舒
亠舒仍亳亰舒亳 舒仍亞仂亳仄舒 于从仍亳亟舒 仆舒 Python:
def gcd(a,b):
while a != b:
if a > b:
a = a - b
else:
b = b - a
print(a)