Hi!
I figured out this problem myself. The reason was that I was using some
commands like:
IsNumeric and cInt. This commands does a lookup in the registry.
Our customers computers are on a big domain(s) with a lot of users, and it
seems like there is a delay between the application and the registry.Or they
have some kind of security-options on the registry on their computers so the
delay will still be there.
I solved it using Integer.Parse(String, somekindofglobalconfig.none) and
char.Isnumeric(string, position) instead.
It's easy to check with this code:
Public Sub Test()
Dim dblStart As Double
Dim dblEnd As Double
Dim i As Integer
Dim blnValue As Boolean
dblStart = Microsoft.VisualBasic.Timer
For i = 0 To 3000000
blnValue = IsNumeric("1000")
Next i
dblEnd = Microsoft.VisualBasic.Timer
msgBox("Result: " & dblEnd - dblStart)
End Sub
:) Thomas
[quoted text, click to view] "Thomas Pettersen" <thomas@skum.no> wrote in message
news:u3de4zkEEHA.3980@TK2MSFTNGP09.phx.gbl...
> Hi!
>
> We have a strange problem that we've been trying to solve for some days.
>
> We have an application where we have our own custom objects filled with
> data. We're doing a lot of looping / removing and creating of objects in a
> specific function. When I run this on my laptop it takes about 1,7 seconds
> to do the whole operations (it's about 4500 objects filled with data).
When
> I do it on my customers computers this takes a lot longer time. I'm not
> doing database-queries, communication with other components or anything.
> It's pure dataprocessing with my own classes. The results are as follows:
>
> My computer (1,7 seconds):
> Laptop Pentium M - 1600 Mhz
> 1 Gb RAM
> Windows XP Pro
>
> My friends computer (1,8 seconds):
> Laptop Pentium 4 - 2,66 Ghz
> 512 Mb RAM
> Windows XP Pro
>
> My customers test-server(12,3 seconds):
> Server Pentium III - 800 Mhz
> 1 Gb RAM
> Windows 2003 Server
>
> My customers production-server (5,4 seconds):
> Server Xeon 2 x 2.4 Ghz
> 2,2 Gb RAM
> Windows 2003 Server
>
> My customers laptop (6,1 seconds):
> Laptop Pentium 4 - 2 Ghz
> 512 Mb RAM
> Windows XP Pro
>
>
> May there be any security-settings? The only big difference between my and
> my friends computers are that we are in a workgroup while the
> customer-computers are in a domain. Are there any other security-settings
or
> anything that my customer may have that affects the performance of our
> application?
>
> Regards
> Thomas Pettersen / SKUM
>
>
>
>
>
>
>
>
>
>