I have seen an article (in the Beautiful Code book that Google sent me as a SoC gift) about runtime code specialization/compilation using C# in order to optimize code. I was thinking about using similar things to optimize our SVG Filters code but I don't know whether this kind of thing is possible in C++. C# can run bytecode generated in runtime. How could that be achieved in C++?
I also have seen an article about a library for C++ that seems to do exactly this, but the lib is non-free: TaskGraph (http://www.doc.ic.ac.uk/~phjk/Software/TGL/)
Is there a free-software lib for this?
Juca
On Tue, 2008-06-03 at 20:11 -0300, Felipe Sanches wrote:
I have seen an article (in the Beautiful Code book that Google sent me as a SoC gift) about runtime code specialization/compilation using C# in order to optimize code. I was thinking about using similar things to optimize our SVG Filters code but I don't know whether this kind of thing is possible in C++. C# can run bytecode generated in runtime. How could that be achieved in C++?
Well, the languages have different default outputs. So, I'm not sure that the specific technique is available in a reasonable fasion.
But, I do think that our filters can be optimized. I think that one of the biggest ways is to take the operations that are matrix operations and combining the matricies before applying them.
I think that the greatest solution is to move the filters into Cairo. Then it can be optimized closer to hardware, which is better at parallel operations such as filters.
--Ted
participants (2)
-
Felipe Sanches
-
Ted Gould