2018.01.24 07:44 AM
2018.01.25 01:22 AM
2018.01.25 09:56 AM
2018.01.26 07:02 AM
2018.01.26 07:50 AM
Yep,
We can make peach behave similarly to .Q.fc by splitting up the vector to match the number of slaves
q)\s
4i
q)f:{2 xexp x}
q)vec:til 100000
q)
q)\t .Q.fc[f;vec]
7
q)\t raze f peach vec
63
q)\t raze f peach 4 0N#vec
11
q)\t raze f peach 4 0N#vec
4
q)\t .Q.fc[f;vec]
4
q)(raze f peach 4 0N#vec)~(.Q.fc[f;vec])
1b
q)
q).Q.fc
k){[f;x]$[(#x)&1<n:"j"$."\\s";,/f':(n;0N)#x;f x]}
Jason
2018.01.26 08:14 AM
Question1This line from .Q.fc page is confusing. “….overhead of creating 100000 threads in peach significantly outweighs….”Why is it creating overhead of 100k threads ? I do not see 100k mentioned anywhere. Both peach and .Q.fc where started with -s 8.Question 2Why is peach timing more than just “f vec” ?q)f:{2 xexp x}q)vec:til 100000
q)\t f peach vec
88
q)\t f vec
5
q)\t .Q.fc[f]vec
12
q)\t f each vec
122
q)\\Links:
2018.01.26 08:01 PM
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.