12 Mar 2012 18:18
How expensive is CLOS object creation ?
Akshay Srinivasan <akshaysrinivasan <at> gmail.com>
2012-03-12 17:18:31 GMT
2012-03-12 17:18:31 GMT
Hi, Now that I have a reasonable amount of support for matrix slices (and more). I can now do neat stuff like ? (defvar a (make-complex-matrix 2 2)) ;; Get the second column ? (defvar e (make-sub-matrix a 0 1 2 1)) ;; Set the imaginary part of the second column to pi ? (copy! pi (imagpart! e)) without without ever having to copy the store. I guess this is okay for user interaction; but I guess there are costs involved with creating new CLOS objects though. Should this sort of stuff be avoided inside core functions then ? Akshay P.S: I will merge my changes and push things to matlisp-cffi, after sending this mail. ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2
RSS Feed