Efficient data packeting

I am currently sending data from the device to agent in the form of a key-value pair table. Since I am connecting through a 3G router, bandwidth is precious and I was wondering how I can reduce the packet size. I guess I can drop the key for a start. Is there any other approach to significantly reduce data packet size?

I’d say it depends on your data: how much and of what type. You might consider writing the values into a blob and sending that.

Eg. if you are sending integers, these are 32-bit values, but given the actual numbers involved, you may be able to use smaller, 16- or 8-bit values instead, by writing them into a blob as such.

Our man @peter is the expert on this sort of thing. Take a look at ‘Writing efficient Squirrel’.

Thanks. I will read up.