Re: [Asterisk-java-users] Advanced Event Filtering
Brought to you by:
srt
From: Stefan R. <ste...@re...> - 2007-08-02 22:37:23
|
Hi, my first thought when reading this thread was: If it's not broken, don't try to fix it. It seems you did not experience any problems with garbage collection (though you might run some load tests to verify that in your environment). Java is really smart handling small short-lived objects. The garbage collector has a young generation (eden space) designed for just that purpose. The next thing that comes to my mind is what you might actually achieve by filtering events at the java side. You will still have create some strings and build the map representing the events (note that the management api makes no guarantees regarding the order of the attributes so you have to parse at least until you encounter the "Event: XXX" attribute). What you could save is creating the actual event object, but well... I would recommend to really get some numbers using a decent profiler. If you can provide something that is convincing we might very well have a look at supporting it in future Asterisk-Java releases. =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |