Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] perfSONAR API

Subject: perfsonar development work

List archive

Re: [pS-dev] perfSONAR API


Chronological Thread 
  • From: Maciej Glowiak <>
  • To: Jochen Reinwand <>
  • Cc: "" <>,
  • Subject: Re: [pS-dev] perfSONAR API
  • Date: Wed, 11 Apr 2007 11:13:13 +0200
  • Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA CXBIWXMAAEU1AABFNQF8gVf5AAAAB3RJTUUH1QYQDjo6uEWvwgAAAM5JREFUGNNN0LFqAkEUheGj KRZsfATrvENgYyH4APabxwgWGUUQC99BsNDCInUq7VImbbDZ0kayxBXMuN7jvTuKVh//mZlmQKZ1 EhQ8GAVgZECspEBdWQHRjR70KlgFKkoUaCw3ijSYQ4n5HfBK4a4jDcdDQPol/80Sr9BxZOOL4Fmr Jq8VBx7eopaSPvWGOm67fqol3j1q0XNs7Nk2cs6MU6gPNzf+ZGKQX4Ek8H6rAnFZnXB2vJxJcv8g C2P+WzL4tD+Txc4KydrIkh+eAdo01QbjQ84vAAAAAElFTkSuQmCC
  • Organization: Poznan Supercomputing and Networking Center

Hi Jochen

Jochen Reinwand wrote:
Hi Maciej,

On Tuesday 10 April 2007 14:59, Maciej Glowiak wrote:
Jochen Reinwand wrote:
On Thursday 05 April 2007 15:39, Maciej Glowiak wrote:
There are NMWG classes for Message construction and Axis functionality
for SOAP. Unfortunately Axis uses DOM Document to store date, so our
NMWG "DOM representation" must be converted into DOM Document. That's
the performance issue to be resolved in the future.
Yes, DOM can cause performance problems... Seems like the Perl
implementation of SOAP uses its own parsers. Perhaps they encountered
similar problems by just using some DOM module. But we are also using DOM
for our perfSONAR Perl implementation. So far the performance seems to be
acceptable. The DOM implementation we're using is more or less the Perl
interface to the standard Open Source C/C++ XML library libxml. This
library seems to be quite fast and C/C++ always tends to be faster than
Java ;-)

But, anyway, seems like there is no "disagreement" on API design itself.
So we can most likely close this discussion.
Yes, but the topic will be coming back... :)

DOM itself is not a problem. The problem is with multiple conversions.
Axis uses DOM Document. Our services use NMWG classes.

The NMWG classes are not using DOM? Our Perl implementation uses DOM. Somehow you can see it as an additional layer above DOM. This is very portable and by now fast enough for us.
If Axis provides access to the (internal) DOM structure, it might be useful to use these DOM structures within the NMWG classes... But, of course, you now a lot more about your code than I do ;-)


Yes, you're right. It would be useful. But the way how NMWG classes are implementes is different. These classes don't use DOM Document. They're independent objects with functionality of conversion to DOM Document. It would be useful to have them based on DOM Document. We have had discussion on that but for now we won't be changing it (it'd be time consuming and probably would require changes in code of services)

I'm still thinking about using the Java extension of Perl to directly use
the perfSONAR classes from within our Perl code...
That could be interesting to investigate.

It's on my to do list for years now. Because of the Java reflection API and the very flexible Perl module system, it's very easy to use Java classes from within Perl. There are at least two implementations I'm aware of:
http://search.cpan.org/~metzzo/Java-4.7/Java.pm
http://search.cpan.org/~rusekd/Java-Import-0.03/lib/Java/Import.pm

It should be quite interesting to play around with these "mechanisms"...

Because of these easy mechanisms it might be a good idea to use the Java perfSONAR core functionality from within Perl. Compatibility between Java and Perl services would be very simple this way ;-)


Thanks for links. I'll follow them when find some spare time.

Best regards

Maciej

--

--------------------------------------------------------------------
| Maciej Glowiak Network Research and Development ||
|

Poznan Supercomputing and Networking Center ||
| (+48 61) 858 2024 -- skype_id: maciej_psnc GG: 4526858 ||
====================================================================



Archive powered by MHonArc 2.6.16.

Top of Page