Very nice code, I like it a lot. It's a pity that "ex::gethash() is not unique", that would certainly improve things a lot. Thanks, Javier -----Original Message----- From: Doug <cape1232@yahoo.com> Reply-to: GiNaC discussion list <ginac-list@ginac.de> To: GiNaC discussion list <ginac-list@ginac.de> Subject: Re: [GiNaC-list] Term ordering and compiling C++ code Date: Tue, 25 May 2010 07:45:05 -0700 (PDT) Hi All, Attached is the code for generating C/C++ code from a GiNaC expression that pulls out subexpressions and declares them up front so that they only have to be evaluated once. The .hh file has documentation and a simple usage example. I hope this is useful. I used it to reduce 50MB of code to under 300K and improved the running time dramatically. -Doug Support NPR 20 seconds at a time. www.twentysecondsatatime.org _______________________________________________ GiNaC-list mailing list GiNaC-list@ginac.de https://www.cebix.net/mailman/listinfo/ginac-list