ets:delete slow when using complex keys ?

Hakan Mattsson <>
Tue Oct 9 14:52:29 CEST 2001


On Tue, 9 Oct 2001, Pascal Brisset wrote:

Pascal> My problem is that mnesia_recover.erl builds such tables and deletes
Pascal> them every few minutes. Can this problem be avoided with some magic
Pascal> combination of system_flags, process_flags and mnesia parameters ?

I believe that the main problem is that the contents of ets tables is
scattered all over the memory. Currently deletion of ets tables as
well scanning of ets tables (match/select and friends) requires random
access of lots of memory pages, since records are not clustered per
table. A memory allocation approach with dedicated ets heaps has the
potential of giving a vast performance improvement.

/Håkan






More information about the erlang-questions mailing list