Fork me on GitHub
#re-frame
<
2024-03-13
>
Mateusz Mazurczak12:03:40

Hi, I saw the https://github.com/day8/re-frame/issues/644. And I was wondering did you consider the performance efficiency of vectors vs maps?

p-himik12:03:18

IMO this is not a point worth considering at all. If your app fires so many events that just passing arguments via a map becomes a performance consideration, you have a much, much bigger problem.

Kimo15:03:37

Do you have an intuition for where performance might suffer? Also, there's https://github.com/day8/re-frame/blob/master/src/re_frame/query/alpha.cljc, which demonstrates subscription queries as maps. A working prototype for event-queries as maps might be relatively easy to put together, based on the designs already in place.

p-himik15:03:30

> Do you have an intuition for where performance might suffer? Not on the re-frame side of things. Bottlenecks are in the app code, not in re-frame.