ElixirConf 2023 - Andrew Selder - Speeding up dynamic templates Using Meta-programming

  Рет қаралды 1,794

ElixirConf

ElixirConf

Күн бұрын

Leave comments at: elixirforum.co...
Many applications have the need for users to define their templates (multi-tenant eCommerce, CMSs, etc.). Phoenix has a reputation for lightning-quick template rendering, but performance is quite lacking if you ever try to render a template not defined at compile time. At Estée Lauder, we found simple product grids take 400-500ms to render as we had to repeatedly render a brand-specific template to display the products.
Using Elixir's ability to metaprogram, we developed a way to get compiled-template-level performance for arbitrary dynamic templates. Benchee showed improvements of over 300x when using our new method.
```
Comparison:
new black magic 8.33 M
old way 0.0249 M - 334.37x slower +40.04 μs
```
In this talk, we'll review the basics of meta-programming and hopefully de-mystify it and make it more approachable. Then, we'll explore how we used these techniques to deliver blazing-fast performance for our customers.

Пікірлер
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Advent of Code 2024: Solving Day 1 with Elixir and ChatGPT! 🚀 #Elixir #ChatGPT
32:02
Elixir, Erlang and the BEAM with Adolfo Neto
Рет қаралды 404
Chris McCord with a Deep Dive on Phoenix
43:47
SmartLogic
Рет қаралды 208
ElixirConf 2023 - Michał Śledź - Rewrite Pion in Elixir
27:57
ElixirConf
Рет қаралды 1,8 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН