Trying to figure out why 2.3 MB JSON binary allocates 35 MB of heap

Thanks everyone for the replies! Swapping Jason with jiffy has worked well so far.

Our original problem of slow and very memory inefficient Phoenix view rendering was also largely due to the legacy usage of Timex.to_datetime(some_naive_datetime, "Etc/UTC") in a view. It turned out to be like 15 times slower and consume 30 times more memory compared to DateTime.from_naive!(some_naive_datetime, "Etc/UTC").

11 Likes