Hi,
What are the pros and cons of following 2 approaches to getting data from my c program to kona ?
A. link my c code with kona lib and create K objects using kona memory pools.
ship them to a running kona server using X or similar call. persist them in kona format
B. do not link my c code with kona lib. write my c structs in binary format to a file.
write some kona shared lib code to load my structs and convert to kona format.
save them in kona format.
My need to convert is not time sesitive - I'll most likely need it at end of day in kona format.
B pros : avoids having to slow down my c program when converting to K objs. I do fwrite instead of socket send.
cons : I need to write some more code for each struct to load it in shared lib
I have 6 structs now and the number is not expected to grow beyond 10. For my use, it is not a big deal.
I would like to hear more thoughts about other use cases.
thanks
Neeraj
On Monday, 27 May 2013 16:11:32 UTC-4, Bakul wrote: