On 22 February 2013 14:40, José María Michia Roberts <[email protected]> wrote: > I want to write a module to automatically do a large number of > "import/process/export" tasks , but I cannot figure out how to run > "v.in.ogr" from C program (I do not understand how to process and > export, but maybe I can understand it after getting import). > > I've this functionality working on a "Python script", but I hope to > get better performance writing this application in C language (source > is very large). > Hi, maybe you already did, but note that you can profile you Python script to find the time consuming places (before rewriting all in C).
How to use Python profiler for GRASS Python script and visualize the result is described here: http://grasswiki.osgeo.org/wiki/Tools_for_Python_programming#cProfile Feel free to edit or ask if the page is not complete. Vaclav _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
