Wow, that's weird. I don't think it has to do with cache, because only
a tiny bit of the arguments are touched.
No, it has to do with inplacing:
b =: 1e9$0
(7!:2 , 7!:2) 'b =: 1 (2 3 4)} b'
1073743328 1408
(7!:2 , 7!:2 , 7!:2 , 7!:2 , 7!:2 , 7!:2) 'b =: 1 (2 3 4)} b'
1408 1408 1408 1408 1073743328 1408
(7!:2 , 7!:2 , 7!:2 , 7!:2 , 7!:2 , 6!:2) 'b =: 1 (2 3 4)} b'
1408 1408 1408 1408 1408 2.21e_5
(7!:2 , 7!:2 , 7!:2 , 7!:2 , 7!:2 , 0:@".) 'b =: 1 (2 3 4)} b'
1408 1408 1408 1408 1408 0
Something is making the second sentence not run inplace. I'll have to
look at that.
Henry Rich
On 10/21/2021 8:08 AM, Raul Miller wrote:
This looks like a cache liveness issue.
https://en.wikipedia.org/wiki/Cache_hierarchy#Multi-level_cache
I hope this makes sense,
--
This email has been checked for viruses by AVG.
https://www.avg.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm