473,791 Members | 3,028 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1081
* "Sjaakie Helderhorst" <di*********@ho tNOTmail.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*********@ho tNOTmail.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*********@ho tNOTmail.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*********@ho tNOTmail.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
2816
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 fopen() with fgetc() to access each byte. I have decided to move further with this app and allow the user to select the first file of an image sequence and it will play the sequence back at at 24 frames per second. I have almost everything...
6
23776
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 line into string just takes to long. When I Import the file with access manually goes fast. But how to use this fromout a C# programme who has done this before and who can give met some answers
2
1778
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 put the lines in the datatable and do some actions. Does anybody knows a faster method? The fact is: I actually only need the lines starting with "0*" and "1*".
2
1306
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 topic, not so much the XML-W3C standard documents and stuff, that requires to much time and is too detailed for
0
2470
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 over the screen or I drag another window on top of the fast display, I get errors (Pyassertion ....). I believe those are related to a conflict between the thread that is updating the buffer (over which I have control) and the thread that is doing the...
0
2386
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 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++ Course on Automation, QTP Basics and Advanced, Quality Center and project ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
0
2198
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 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Course on Automation, QTP Basics and Advanced, Quality Center and project
0
2076
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 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Course on Automation, QTP Basics and Advanced, Quality Center and project
0
8012
by: Vinod Sadanandan | last post by:
Fast-Start Failover An Overview In Dataguard Environment ============================================================================= This article describes the automatic fast start failover configuration and the conditions for trigerring a fast start failover in dataguard environment . In Faststart failover dataguard configuration if the primary database becomes unavailable, the...
0
9669
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10427
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10155
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9995
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9029
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5431
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4110
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.