473,322 Members | 1,345 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Fast starting app

Hi!

I use an ISDN monitor which displays caller ID. In stead of entering all
numbers manually, I wish to query a national phonenumber database, which I
obtained as a MySQL database. The only way I can pass the caller id from the
software to another app, is by executing it with a parameter (this parameter
is the phonenumber).
So far I managed to do so, I wrote a vb console app which queries the
database and writes output to a text-file which the monitor app can read.
But ... starting this little console app takes about 2,5 seconds.

Is there a smarter (and faster) way of achieving this? I can think of a
process residing in memory and is triggered by a fast starting app... can't
find any info/samples on how to achieve this.

Any help is appreciated! Thanks in advance
Nov 20 '05 #1
5 1059
* "Sjaakie Helderhorst" <di*********@hotNOTmail.com> scripsit:
I use an ISDN monitor which displays caller ID. In stead of entering all
numbers manually, I wish to query a national phonenumber database, which I
obtained as a MySQL database. The only way I can pass the caller id from the
software to another app, is by executing it with a parameter (this parameter
is the phonenumber).
So far I managed to do so, I wrote a vb console app which queries the
database and writes output to a text-file which the monitor app can read.
But ... starting this little console app takes about 2,5 seconds.

Is there a smarter (and faster) way of achieving this? I can think of a
process residing in memory and is triggered by a fast starting app... can't
find any info/samples on how to achieve this.


On the destination machine, you can use "ngen.exe" to generate a native
image of the application. This may decrease time needed for startup.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schreef in bericht
news:2g************@uni-berlin.de...
* "Sjaakie Helderhorst" <di*********@hotNOTmail.com> scripsit:
I use an ISDN monitor which displays caller ID. In stead of entering all
numbers manually, I wish to query a national phonenumber database, which I obtained as a MySQL database. The only way I can pass the caller id from the software to another app, is by executing it with a parameter (this parameter is the phonenumber).
So far I managed to do so, I wrote a vb console app which queries the
database and writes output to a text-file which the monitor app can read. But ... starting this little console app takes about 2,5 seconds.

Is there a smarter (and faster) way of achieving this? I can think of a
process residing in memory and is triggered by a fast starting app... can't find any info/samples on how to achieve this.


On the destination machine, you can use "ngen.exe" to generate a native
image of the application. This may decrease time needed for startup.


I'll give it a try and let you know
Thanks!
Nov 20 '05 #3
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schreef in bericht
news:2g************@uni-berlin.de...
* "Sjaakie Helderhorst" <di*********@hotNOTmail.com> scripsit: On the destination machine, you can use "ngen.exe" to generate a native
image of the application. This may decrease time needed for startup.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Unfortunately not a major increase in speed, just some milliseconds...
Is there a way of time-tracing the execution? Then I can see which step
consumes most of the time.

Another question: Would using a formless windows ap execute faster than a
console application?
Nov 20 '05 #4
Sjaakie Helderhorst schrieb:
Unfortunately not a major increase in speed, just some milliseconds...
Is there a way of time-tracing the execution? Then I can see which step
consumes most of the time.
I thought that...
Another question: Would using a formless windows ap execute faster than a
console application?


Yes. A Windows Forms application loads a couple of DLLs, like
"System.Windows.Forms.dll" and "System.Drawing.dll", and loading DLLs
needs some time. I assume that loading the library used to establish
the connection and connecting to the database will take some time too.

Have a look if you reference libraries that are not used in your
project, and remove these references.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5
There is a community edition of the DevPatner Profiler, which can help you trace where exactly you are having a problem

Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com

"Sjaakie Helderhorst" wrote:
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schreef in bericht
news:2g************@uni-berlin.de...
* "Sjaakie Helderhorst" <di*********@hotNOTmail.com> scripsit:

On the destination machine, you can use "ngen.exe" to generate a native
image of the application. This may decrease time needed for startup.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Unfortunately not a major increase in speed, just some milliseconds...
Is there a way of time-tracing the execution? Then I can see which step
consumes most of the time.

Another question: Would using a formless windows ap execute faster than a
console application?

Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Cable | last post by:
Hello, I am hoping that someone can answer a question or two regarding file access. I have created an app that reads an image from a file then displays it (using OpenGL). It works well using...
6
by: G.Esmeijer | last post by:
Friends, I would like to read a text file (fixed length formaated) really fast and store the data into an Access database (2003). Using the streamreader and reading line by line, separating the...
2
by: DraguVaso | last post by:
Hi, I need a FAST way to put the content of a file in a datatable (one record for each line in the file). I have a routine for it, but it takes me too much time (2-5 seconds for each file) to...
2
by: Martin Steffen | last post by:
Hi, XML-Query languages are quite outside my area of expertise. I need, however material for an academic talk, focusing on XML-query languages. So I'm looking for fast entry points to that...
0
by: adubra | last post by:
Hi there, I am using a device context (DC) and a buffer to successfully draw to screen. However, when I update the DC at very high frame rate and drag the frame containing the image very quickly...
0
by: Sharath | last post by:
"Inspired" by the huge success of our first two automation fast track batches We are forced to start third fast track automation batch ...
0
by: Sharath | last post by:
We are glad to inform you that "Inspired" by the huge success of our first three automation fast track batches We are forced to start fourth fast track automation batch ...
0
by: Sharath | last post by:
We are glad to inform you that "Inspired" by the huge success of our first four automation fast track batches We are forced to start fifth fast track automation batch ...
0
by: Vinod Sadanandan | last post by:
Fast-Start Failover An Overview In Dataguard Environment ============================================================================= This article describes the automatic fast start failover...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.