PeyloW
Joined: 12 Oct 2005 Posts: 14 Location: Sweden
|
Posted: Sat Nov 19, 2005 4:43 pm Post subject: Update 2005-11-19 |
|
|
Bugfixes to many functions, mostly allowing for nil input and correcly returning nil for such cases.
Also added time, so we can time our code. Witht the testcase this is what you can get:
Code: | > (load "../testcases/paintmap.lisp")
> (load "../testcases/paintmap_data.lisp")
> (time (dfs (list initial-state)))
; Evaluation took: 6.452 seconds.
; 529814 conses and 18893 atoms in 15003kb allocated.
|
This is on a 700mhz iMac (The globe). And not that bad, I think some better performance could be possible if I rewrote evalArgs to return Cell*[] instead of a proper list.
And for those who have asked; no I see no reason to make the struct Cell a class. Sure I would get some nicer code, but I see two major obstacles:
1. Setf and similar functions would be close to impossible to implement as instantiated objects can not be mutated into new classes.
2. Would need wrappers for managing data from other languages. |
|