Sorry, typo in the previous email... that should say *30* seconds in GUI mode.
Also, you can disable undo using nuke.Undo.disable(), but I'm not sure how much of a gain it would net you. Could be that it would improve the performance of your current approach a lot. -Nathan From: Nathan Rusch Sent: Thursday, October 16, 2014 2:35 PM To: Nuke Python discussion Subject: Re: AW: AW: [Nuke-python] Performance tweaks for script generation? I just tried programmatically creating 10,000 Grade nodes and setting their 'blackpoint', 'whitepoint', 'black', and 'white' knobs to random values (calling random.random() for each knob on every node), and it took about 20 seconds in GUI mode, less in terminal mode (terminal could have been faster, but the return value of all 40,000 calls to setValue was being printed). Storing the nodes in a non-TCL form would be pretty trivial. Probably the most obvious approach would be to build a (sparse) dict of knob-value pairs (which could even be done by parsing the result of Node.writeKnobs so the result were functionally equivalent to what you're doing now), and then (optionally) serialize that for storage (using JSON, pickle, etc). For the storage side, you're already storing text, so not much would change there. However, if you wanted a nicer API, you could look into using Mongo or, if you have Postgres, use the JSON datatype directly. -Nathan From: Thorsten Kaufmann Sent: Thursday, October 16, 2014 1:12 PM To: Nuke Python discussion Subject: AW: AW: [Nuke-python] Performance tweaks for script generation? Well i would have to serialize everything into the db manually then. That sounds like quite some hassle to implement, i am unsure how robust that is (think knob changes over versions) and i am neither sure that would be faster. Cheers, Thorsten --- Thorsten Kaufmann Production Pipeline Architect Mackevision Medien Design GmbH Forststraße 7 70174 Stuttgart T +49 711 93 30 48 606 F +49 711 93 30 48 90 M +49 151 19 55 55 02 thorsten.kaufm...@mackevision.com www.mackevision.de Geschäftsführer: Armin Pohl, Joachim Lincke, Karin Suttheimer HRB 243735 Amtsgericht Stuttgart --- MACKEVISION SHOWREEL: Out now! ANIMAGO AWARD: Die Projekte "Game of Thrones" und "Mercedes-Benz 4MATIC Schneemonster" sind für den renommierten Animago Award nominiert. REFERENZEN: Mackevision inszeniert den Porsche Macan. -------------------------------------------------------------------------------- Von: nuke-python-boun...@support.thefoundry.co.uk <nuke-python-boun...@support.thefoundry.co.uk> im Auftrag von Nathan Rusch <nathan_ru...@hotmail.com> Gesendet: Donnerstag, 16. Oktober 2014 21:38 An: Nuke Python discussion Betreff: Re: AW: [Nuke-python] Performance tweaks for script generation? If you're creating nodes by dumping TCL into the script using nuke.scriptPaste or nuke.scriptReadXXX, I can understand why that would be slow. Is there a reason you can't create the nodes procedurally? -Nathan From: Thorsten Kaufmann Sent: Thursday, October 16, 2014 12:22 PM To: Nuke Python discussion Subject: AW: [Nuke-python] Performance tweaks for script generation? Hey there, i should probably do some more in-depth profiling, but it is about creating the nodes in the DAG so it seems. Am pulling tcl representations from a db and assemble scripts in nuke. The db call takes only miliseconds, the generation of the scripts minutes. Maybe should also think about threading that. Though that seems somewhat scary atm heh Cheers, Thorsten --- Thorsten Kaufmann Production Pipeline Architect Mackevision Medien Design GmbH Forststraße 7 70174 Stuttgart T +49 711 93 30 48 606 F +49 711 93 30 48 90 M +49 151 19 55 55 02 thorsten.kaufm...@mackevision.com www.mackevision.de Geschäftsführer: Armin Pohl, Joachim Lincke, Karin Suttheimer HRB 243735 Amtsgericht Stuttgart --- MACKEVISION SHOWREEL: Out now! ANIMAGO AWARD: Die Projekte "Game of Thrones" und "Mercedes-Benz 4MATICSchneemonster" sind für den renommierten Animago Award nominiert. REFERENZEN: Mackevision inszeniert den Porsche Macan. -------------------------------------------------------------------------------- Von: nuke-python-boun...@support.thefoundry.co.uk <nuke-python-boun...@support.thefoundry.co.uk> im Auftrag von Johannes Hezer <j.he...@studiorakete.de> Gesendet: Donnerstag, 16. Oktober 2014 19:32 An: nuke-python@support.thefoundry.co.uk Betreff: Re: [Nuke-python] Performance tweaks for script generation? Hi thorsten, is it truely nuke that is being slow in the script creation or are you also globbing a lot for example to look for footage? Would be good to get a bit more details of the script creation process to give some input. Cheers Johannes Am 10/16/14 10:53 AM, schrieb Thorsten Kaufmann: Hey there, I hope this is no double post. It seems that the list rejected my last try though because our company mail addresses where switched from .de to .com. I was wondering if anyone had some input in regards to speeding up automatic script generation. I am creating rather large scripts automatically and am hitting rather harsh performance hits. I was thinking about things like: - is it possible to turn off undo? I’d expect that to help - Anything else that speeds up scripted generation of nodes? Can I turn off GUI updates or alike? Cheers, Thorsten --- Thorsten Kaufmann Production Pipeline Architect Mackevision Medien Design GmbH Forststraße 7 70174 Stuttgart T +49 711 93 30 48 606 F +49 711 93 30 48 90 M +49 151 19 55 55 02 thorsten.kaufm...@mackevision.com www.mackevision.de Geschäftsführer: Armin Pohl, Joachim Lincke, Karin Suttheimer HRB 243735 Amtsgericht Stuttgart --- MACKEVISION SHOWREEL: Out now! ANIMAGO AWARD: Die Projekte "Game of Thrones" und "Mercedes-Benz 4MATICSchneemonster" sind für den renommierten Animago Award nominiert. REFERENZEN: Mackevision inszeniert den Porsche Macan. ____ ESET 10555 (20141013) ____ The message was checked by ESET Mail Security. _______________________________________________ Nuke-python mailing listnuke-pyt...@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python ____ ESET 10555 (20141013) ____ The message was checked by ESET Mail Security. -- STUDIO RAKETE GmbH Johannes Hezer, Compositing TD & Stereoscopic SV Schomburgstr. 120 D - 22767 hamburgj.he...@studiorakete.de Tel:+49 (0)40 - 380 375 69 - 0 Fax:+49 (0)40 - 380 375 69 - 99 ------------------------------------------------------ Pflichtangaben laut Handelsgesetzbuch und GmbH-Gesetz: STUDIO RAKETE GmbH Schomburgstr. 120 D - 22767 Hamburgwww.studiorakete.de / i...@studiorakete.de Geschaeftsfuehrer: Jana Bohl Die Gesellschaft ist eingetragen im Handelregister des Amtsgerichts Hamburg unter der Nummer HR B 95660 USt.-ID Nr.: DE 245787817 ____ ESET 10555 (20141013) ____ The message was checked by ESET Mail Security. -------------------------------------------------------------------------------- _______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python -------------------------------------------------------------------------------- _______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python -------------------------------------------------------------------------------- _______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python