DaAnalyst
Added to PhoenixLiveViewExt v1.1.0, Listiller (pre/appended container list distiller) is now available for download with the documentation.
In short, Listiller helps deal with appended container lists in terms of optimal insertion, update and deletion of elements so that LiveView only sends and traverses the actually changed elements in the list. Relative to its default behavior of replacing the entire list, the performance gains are enormous, so shopping cards, todolists, tables (yes, nested components lists) and other similar UCs can now run optimally on LiveView even when traversing to patch the DOM,
Trending in Discussions
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
New
The obligatory hello world thread!
Who are you and where are you from? :stuck_out_tongue:
New
@chrismccord : I just saw the Extract AGENTS.md from Phoenix.new into phx.new generator commit to the phoenix project.
My initial shotgu...
New
I was working on an Ecto migration and I needed a timestamp. So, for the nth time, I looked up the different data types for timestamps, a...
New
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog
It says that Fly is going all-in on sprites, which is a worry ...
New
We’re evaluating API mocking tools for OpenAPI-based projects and would love to hear what other teams are using.
We’re particularly inte...
New
Is there a word for the ~> symbol used in Version strings?
Do you also just call it a Squiggle Arrow™ ?!
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
There are three potential reasons for members of this forum to have a look at https://vutuv.de
You are tired or annoyed of LinkedIn.
Yo...
New
Latest Phoenix Threads
Chat & Discussions>Discussions
Latest on Elixir Forum
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #blog-post
- #phoenix_html
- #iex
- #graphql
- #ai
- #genstage
- #elixirconf-us
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex










First 5 of 5 Posts
cenotaph
This is what I had to do last project.
I would love to see a compare and contrast in your documentation.
Vanilla phoenix code and diffs for the mentioned actions and your extension, diffs for the same actions.
DaAnalyst
The results are UC dependent and may vary dramatically. For instance, a table row insertion with Listiller will have LiveView send just the particular row to the JS client while a vanilla implementation will replace the entire table. The more rows and columns, the greater the difference.
In my project where I extracted the library from, the average performance gain is typically around 75% to 90% for the vanilla JS side patching alone (i.e. its 4 to 10 times faster). Meaning that with bigger models and slower internet connection this can easily go well over 95% i.e. 20-40 times faster than the vanilla implementation.
As for some hard benchmark results, it would first require building an example app for I can’t publish my real project.
cenotaph
Your documentation on hex is in a self-pointer state. I see more when I open the source in Github.
Definitely, a small demo required to show off the
updated_sortcapability maybe?Otherwise, I think I have achieved the same minimum wire transfer with usage of
or am I misunderstanding the component?
DaAnalyst
To tell you the truth I don’t know what you mean by either of the two questions. I tried figuring out what this Elxsy demo was about and the only link to github was to a certain ykurtbas account where no library similar to mine was published but some other unrelated stuff.
As for your question regarding the temporary assigns and phx-update=“prepend” or “append”, yes, that’s the foundation on which my library is based, but your assigns won’t get diffed server-side and sorted + deleted clientside all by themselves, which is why I made this library. Also, my library runs in a real project relying on thousands of nested fully editable and movable LiveComponents within the lists of other such LiveComponents.
To achieve this effect of a freely editable lists and nested lists you need to handle the sorting (repositioning) and deletion and prior to that you need to prepare the assigns in relative to the operations that you’re doing (depending on your diffing of the assigns, not LiveView’s), unless the only function of the list is to keep on growing in one direction.
The docs are all on hex.pm and if you follow the route below, you get to the Listiller documentation easily:
PhoenixLiveViewExt — phoenix_live_view_ext v1.2.2 → Modules → PhoenixLiveViewExt.Listiller → Top
DaAnalyst
A new minor update of the PhoenixLiveViewExt is available.
It now supports defining a different function name for the MultiRender macro generated render/2 function.This is useful to avoid render/2 naming conflicts when using MultiRender with a live view or view module.