DotQ/DotQDotfc

From Kx Wiki
Jump to: navigation, search

.Q.fc

parallel on cut - runs multiple threads if possible

q -s 8
q)f:{2 xexp x}
q)vec:til 100000
q)\t f vec
12
q)\t .Q.fc[f]vec
6

Note in this case the overhead of creating 100000 threads in peach significantly outweighs the computational benefit of parallel execution:

q)\t f peach vec
45
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox