diff mercurial/parsers.c @ 18900:02ee846b246a

scmutil: rewrite dirs in C, use if available This is over twice as fast as the Python dirs code. Upcoming changes will nearly double its speed again. perfdirs results for a working dir with 170,000 files: Python 638 msec C 244
author Bryan O'Sullivan <bryano@fb.com>
date Wed, 10 Apr 2013 15:08:27 -0700
parents 194e63c1ccb9
children 5bae936764bb
line wrap: on
line diff
--- a/mercurial/parsers.c	Wed Apr 10 15:08:26 2013 -0700
+++ b/mercurial/parsers.c	Wed Apr 10 15:08:27 2013 -0700
@@ -1528,8 +1528,12 @@
 	{NULL, NULL}
 };
 
+void dirs_module_init(PyObject *mod);
+
 static void module_init(PyObject *mod)
 {
+	dirs_module_init(mod);
+
 	indexType.tp_new = PyType_GenericNew;
 	if (PyType_Ready(&indexType) < 0)
 		return;