A Dimarts, 5 de març de 2013 00:55:06, Cédric Krier va escriure: > On 05/03/13 00:03 +0100, Albert Cervera i Areny wrote: > > The patch works great and the full command I was trying finishes in just > > 51 seconds. Here's the command: > > > > ./bin/trytond -d database -u country > > > > Still, if I increase the cache size from 2000 to 20000, it finishes in > > almost half of the time: 27 seconds! At a first glance I'd guess the > > issue could be with Fs2bdAccessor.browserecord in convert.py but haven't > > done any tests yet. > > Yes the patch is not prefect because it should also order by fs_id but > it is not possible.
Regarding translation.py maybe it could be improved by refactoring the code and iterating by data from the database, still I think the patch is worth while we don't have a larger improvement. However I think that maybe the bottleneck now is in the import of xml files, not po. This is my guess, though, so I will run some tests to make sure that is the case. -- Albert Cervera i Areny http://www.NaN-tic.com Tel: +34 93 553 18 03 http://twitter.com/albertnan http://www.nan-tic.com/blog -- -- [email protected] mailing list --- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
