Thanks, Henry On j807:
sigmoidbh =: %@:>:@:^@:- timespacex'sigmoidb val' 0.182454 8.39008e6 timespacex'sigmoidbh val' NB. notice doubled space, too 0.023562 1.67785e7 On j9: timespacex'sigmoidb val' 0.933163 8.39002e6 sigmoidbh =: %@:>:@:^@:- timespacex'sigmoidbh val' NB. no space penalty here 0.016804 8.38989e6 So, the bigger improvement in j9 is the space saving, not the speed. The speed improvement is slight in j9 relative to j807. The speed is improved mostly by using @: in both j807 and j9. On Wed, Feb 19, 2020 at 12:05 PM Henry Rich <henryhr...@gmail.com> wrote: > sigmoidb is slow because it uses @ instead of @: > > %@:>:@^@- > > the full overhead of starting a verb is incurred 3 times FOR EACH ATOM: > one for -, one for ^, and one for %@:>: > > Change @ to @: and you will have 4 verb-starts for the entire execution. > > Henry Rich > > -- (B=) ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm