Custom Query (1030 matches)
Results (769 - 771 of 1030)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #220 | fixed | Adding a type specifier to one slot makes instantiation over 3x slower | ||
| Description |
Running on a 2.16 GHz Core 2 Duo MacBook Pro with 2 GB RAM: Welcome to Clozure Common Lisp Version 1.1-r7809 (DarwinX8664)!
? (defclass class-with-typed-slot ()
((attribute-one :initarg :attribute-one
:type string)))
(defclass class-with-untyped-slot ()
((attribute-one :initarg :attribute-one)))
(defun instantiate-class-with-typed-slot (times)
(dotimes (i times)
(make-instance 'class-with-typed-slot :attribute-one "one")))
(defun instantiate-class-with-untyped-slot (times)
(dotimes (i times)
(make-instance 'class-with-untyped-slot :attribute-one "one")))
? ? ? INSTANTIATE-CLASS-WITH-UNTYPED-SLOT
? (time (instantiate-class-with-typed-slot 50000))
(INSTANTIATE-CLASS-WITH-TYPED-SLOT 50000) took 336 milliseconds (0.336 seconds) to run
with 2 available CPU cores.
During that period, 307 milliseconds (0.307 seconds) were spent in user mode
6 milliseconds (0.006 seconds) were spent in system mode
4 milliseconds (0.004 seconds) was spent in GC.
6,400,624 bytes of memory allocated.
NIL
? (time (instantiate-class-with-untyped-slot 50000))
(INSTANTIATE-CLASS-WITH-UNTYPED-SLOT 50000) took 97 milliseconds (0.097 seconds) to run
with 2 available CPU cores.
During that period, 93 milliseconds (0.093 seconds) were spent in user mode
4 milliseconds (0.004 seconds) were spent in system mode
3 milliseconds (0.003 seconds) was spent in GC.
4,800,624 bytes of memory allocated.
NIL
?
|
|||
| #221 | fixed | defstruct accessors don't check argument type | ||
| Description |
? (defstruct foo x) FOO ? (defstruct baz y) BAZ ? (foo-x (make-baz)) NIL Should be an error. |
|||
| #224 | fixed | release notes for 1.2 | ||
| Description |
Create release notes (possibly as wiki page on the Trac) for a 1.2 release. |
|||
Note:
See TracQuery
for help on using queries.
