On Mon, 30 May 2016, Erik Bray wrote:

Imho many sage modules have grown too long, including but not limited to
some 20kloc monsters. +1 to splitting things up!

Yikes!  I'm not sure I've even run into any of those yet.  20kloc is
definitely worth splitting up.  ~4k is a lot more arguable I think,
but I personally don't like files to get much longer than 1kloc
depending of course on how practical it is to further subdivide, which
it isn't always.

What you mean by kloc? Lines of *code*, or lines of whole file?

There is 21312 lines at src/sage/graphs/generic_graph.py. But there just is so much functions defined for (di)graphs, with different options and algorithms and so on.

--
Jori Mäntysalo

Reply via email to