Discussion:
Optimization
(too old to reply)
Fred Block
2009-01-12 17:04:24 UTC
Permalink
Hi All,

Can anyone let me know what kind of benchmark (points/second) I can expect
when using the FindServiceSoap and the GetLocationInfo method. I am
optimizing as best I know how using the GetInfoOptions and requesting only
as shown here (if I can do better, *please* advise!):

Dim myEntityTypes(2) As String
myEntityTypes(0) = "Sovereign"
myEntityTypes(1) = "AdminDivision1"
myEntityTypes(2) = "Postcode1"

Dim myOptions As New GetInfoOptions()
myOptions.EntityTypesToReturn = myEntityTypes
myOptions.IncludeAllEntityTypes = False
myOptions.IncludeAddresses = True

Further, I'm settuing up the connection once and not in each iteration of
the GetLocationInfo calls I'm making:

Dim myCredentials = New
System.Net.NetworkCredential(mMWSCredentialsUserName,
mMWSCredentialsPassword)

Try
mFindServiceSoap = New FindServiceSoap
mFindServiceSoap.Credentials = myCredentials
mFindServiceSoap.PreAuthenticate = True
mFindServiceSoap.Url =
"http://findv3.mappoint.net/Find-30/FindService.asmx"
'mFindServiceSoap.Url =
"http://findv3.staging.mappoint.net/Find-30/FindService.asmx"
Catch ex As Exception
UserDisplay("ERR: [MWSLogin] - " & ex.Message)
End Try
--
Thanks in advance for your time and support!

Kind regards - Fred
markthegrea
2009-02-24 18:32:01 UTC
Permalink
I am getting between .8 and 1.8 seconds.

I too create my context once and share it. I also make a new stubb each
time. I have seen on the AXIS2 website that you should do a

stub._getServiceClient().cleanupTransport();

after each call.
Post by Fred Block
Hi All,
Can anyone let me know what kind of benchmark (points/second) I can expect
when using the FindServiceSoap and the GetLocationInfo method. I am
optimizing as best I know how using the GetInfoOptions and requesting only
Dim myEntityTypes(2) As String
myEntityTypes(0) = "Sovereign"
myEntityTypes(1) = "AdminDivision1"
myEntityTypes(2) = "Postcode1"
Dim myOptions As New GetInfoOptions()
myOptions.EntityTypesToReturn = myEntityTypes
myOptions.IncludeAllEntityTypes = False
myOptions.IncludeAddresses = True
Further, I'm settuing up the connection once and not in each iteration of
Dim myCredentials = New
System.Net.NetworkCredential(mMWSCredentialsUserName,
mMWSCredentialsPassword)
Try
mFindServiceSoap = New FindServiceSoap
mFindServiceSoap.Credentials = myCredentials
mFindServiceSoap.PreAuthenticate = True
mFindServiceSoap.Url =
"http://findv3.mappoint.net/Find-30/FindService.asmx"
'mFindServiceSoap.Url =
"http://findv3.staging.mappoint.net/Find-30/FindService.asmx"
Catch ex As Exception
UserDisplay("ERR: [MWSLogin] - " & ex.Message)
End Try
--
Thanks in advance for your time and support!
Kind regards - Fred
Loading...