Ticket #27 (closed enhancement: fixed)
Zero out an unboxed array
| Reported by: | jbapple | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Version: | 0.6 | Keywords: | |
| Cc: |
Description
For all of the unboxed types, 0 makes sense as a value, and can be represented by bytes with no bits set. Initializing a Vector someType using newWith, however, sets each group of bits or bytes one someType at a time. I suspect memset would be substantially faster.
I suggest, for unboxed types only, an initializer named something like newZero. This might work for Storable as well.
Because newWith is slower than I would like, I am using new rather than newWith and using a trick to make sure I don't actually use any uninitialized values.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
