Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

It takes so long to generate dictionary of GL elements.

The following command

GL4dicthash={hash(g):None for g in GL(4,2)}

takes 9 seconds to execute. On the other hand

GL4dict={g:None for g in GL(4,2)}

takes minutes and does not seem to terminate.

If I understand python dictionary correctly, they should take about the same time. So what happened?