Kryonet Optimization With #sendTCP()

  1. Simple question: are these two calls sending the same amount of bytes?

… and for my sanity…
2) If no to question #1, what is the size of a ‘new IntTest()’
3) If no to question #1, what is the size of a ‘new ByteTest()’

sendTCP(new ByteTest()); // #1
sendTCP(new IntTest());  // #2
public class ByteTest() {
    byte b;
}
public class IntTest() {
    int i;
}

My understanding of Kryonet is as follows: both objects are being converted into respective byte arrays and then pushed onto an output byte array buffer(?) so it would make logical sense that the ByteTest object would be smaller on the output buffer than the object IntTest simply because an int requires 4 times the amount of bytes.

Assuming the previous sentence is true, I’ve been reading posts on SO that claim ‘there is no point’ to this ‘optimization’… but I find that statement hard to believe if bandwidth is a bottleneck, which then justifies thorough optimizations of this nature within the architecture.