reduce the job pipeline to send a message by fetching the bids and adding the message to the connection queue synchronously
these had been broken out into seperate jobs before to reduce thread and lock contention, but that isn't as serious an issue anymore (in these cases) and the non-contention-related delays of these mini-jobs are trivial
This commit is contained in:
@ -48,7 +48,8 @@ public class CommSystemFacadeImpl extends CommSystemFacade {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void processMessage(OutNetMessage msg) {
|
public void processMessage(OutNetMessage msg) {
|
||||||
_context.jobQueue().addJob(new GetBidsJob(_context, this, msg));
|
GetBidsJob j = new GetBidsJob(_context, this, msg);
|
||||||
|
j.runJob();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String renderStatusHTML() { return _manager.renderStatusHTML(); }
|
public String renderStatusHTML() { return _manager.renderStatusHTML(); }
|
||||||
|
@ -119,7 +119,9 @@ public class TCPTransport extends TransportImpl {
|
|||||||
* and it should not block
|
* and it should not block
|
||||||
*/
|
*/
|
||||||
protected void outboundMessageReady() {
|
protected void outboundMessageReady() {
|
||||||
_context.jobQueue().addJob(new NextJob());
|
//_context.jobQueue().addJob(new NextJob());
|
||||||
|
NextJob j = new NextJob();
|
||||||
|
j.runJob();
|
||||||
}
|
}
|
||||||
|
|
||||||
private class NextJob extends JobImpl {
|
private class NextJob extends JobImpl {
|
||||||
|
Reference in New Issue
Block a user