Roger Hui <[EMAIL PROTECTED]> wrote:

> See the following (J4.05)
> http://www.jsoftware.com/help/release/iamend.htm
> There is a link to it from Appendix B of the dictionary.

The implementation avoids amend-in-place for integer indices
in case of index error. Perhaps performance could be
improved by pre-verifying the indices, and if none are out
of range, then doing the amend in place? This would save
memory, and the CPU usage should be about the same (index
bounds checking needs to be done in either case; this new
way requires accessing the data one extra time, but would
avoid one data copy, so it should come out around even).

-- Mark D. Niemiec <[EMAIL PROTECTED]>


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to