will the ets table release memory after recreating with the same name?

When you are creating an ETS table without a registered name (check the option named_table) the table is created with a reference. No matter how many you create, the old ones are still there so, yes, you have a leak of memory if you are not deleting the old ones.

One way to avoid this is by using the named_table option. This is crashing if the previous table exists. You can put the creation of the table with a catch or inside a try-catch block.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top