Hi All,
I am pretty new to q programming, Can any one of you let me know, if we can increase the Size of the List.
Thanks for your response.
Regards
Samir Kumar,A
Hi All,
I am pretty new to q programming, Can any one of you let me know, if we can increase the Size of the List.
Thanks for your response.
Regards
Samir Kumar,A
You don’t have to manage memory in q. It will grow the list for you eg.
a:1 2 3
a,:4 5
q allocates memory blocks with size in powers of 2, and will grow the object until the memory block is all used, at which point it will move it into a new memory block the next power of 2 larger.
There are some details here:
http://www.aquaq.co.uk/q/garbage-collection-kdb/
Thanks
Jonny
Sent from my iPhone
How can I grow or shrink lists created with k.h and c.o in c++ clients? Currently what I would do is growing a std::vector to desired size and then copy the stuff to a K list. Thx.
To grow lists (http://code.kx.com/wiki/Cookbook/InterfacingWithC)
Join an atom to a list: K ja(K*,V*);
Join a string to a list: K js(K*,S);
Join another K object to a list K: jk(K*,K);
Join another K list to the first: K jv(K*,K);
No sure about shrinking lists.
ty