Every byte is precious!
No need to tell the server the callerOid, it already knows it. This saves 4 bytes for every listener you pass into an invocation request. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5908 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -190,7 +190,6 @@ public class InvocationDirector
|
||||
if (arg is InvocationMarshaller_ListenerMarshaller) {
|
||||
var lm :InvocationMarshaller_ListenerMarshaller =
|
||||
(arg as InvocationMarshaller_ListenerMarshaller);
|
||||
lm.callerOid = _clobj.getOid();
|
||||
lm.requestId = nextRequestId();
|
||||
lm.mapStamp = getTimer();
|
||||
|
||||
|
||||
@@ -36,9 +36,6 @@ public class InvocationMarshaller_ListenerMarshaller
|
||||
/** The method id used to dispatch a requestFailed response. */
|
||||
public static const REQUEST_FAILED_RSPID :int = 0;
|
||||
|
||||
/** The oid of the invocation service requester. */
|
||||
public var callerOid :int;
|
||||
|
||||
/** The request id associated with this listener. */
|
||||
public var requestId :int;
|
||||
|
||||
@@ -70,14 +67,12 @@ public class InvocationMarshaller_ListenerMarshaller
|
||||
*/
|
||||
public function toString () :String
|
||||
{
|
||||
return "[callerOid=" + callerOid + ", reqId=" + requestId +
|
||||
", type=" + ClassUtil.getClassName(this) + "]";
|
||||
return "[reqId=" + requestId + ", type=" + ClassUtil.getClassName(this) + "]";
|
||||
}
|
||||
|
||||
// documentation inherited from interface Streamable
|
||||
public function writeObject (out :ObjectOutputStream) :void
|
||||
{
|
||||
out.writeInt(callerOid);
|
||||
out.writeShort(requestId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user