[Cxtable-devel] RE:The last code edit I had done....
Status: Alpha
Brought to you by:
xiarcel
From: Williams, D. <DAV...@ca...> - 2001-12-05 16:04:14
|
Borne... (This code edit is reflected in the current source on CVS...I have not worked on it since) I did something that I felt should have increased speed a bit on the inbound-processing end...but in testing it there was no difference in the benchmark. At the time the Listener-dispatch was started, it took System.currentTimeMillis(). Once it had finished cycling through all of its read-delegating, it did the same, took the difference..... It was either 0 or 50,60,.... in both cases... Prior to this change.... ALL xListener objects stored in the xListenerRegistry for that particular xClientConn would receive the message and determine if it was related to their function or not... I thought that the new way (checking first if they accept ALL messages with a if (xlistener.readAll()) {/*send it on*/} .... and then checking which Strings (String[] keys = xlistener.readKeys();) I think the lack of performance boost comes from the fact that the String[]'s returned for that method are created each time the method is called, rather than final static String[]'s... I think if I make them final static it might increase speed on processing... Does that make sense, do you think? David Scott Williams Computer Associates Marketing Representative-Sales Call Center One Computer Associates Plaza Islandia, New York 11749 tel: +1 800-243-9462 ext. 73431 tel: +1 631-342-3431 (Direct) fax: +1 631-342-5734 wi...@ca... |