AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Elixir Shared Access to a Large Chunk of Memory
The problem that you'll run into if you're using the ip try library which is what i did is the ip try is represented as just a map in elixir ets does not have like a native data type for maps so let's say it's like 20 megabytes every process that calls in to ets that's a 20 megabyte memory copy out to the calling process. If you get enough requests then you just blew up your memory consumption there's a feature though in earlang called persistent term and it's created for the purpose of kind of shared access to a big chunk of memory you can't update it as frequently so for this problem of the IP addresses let's just