How To Process Data Faster

Dec 4, 2009

I'm receiving a lot of data at the rate of 19200. I'm using read byte to assemble a buffer and process it. When I receive certain data I need to reply to the sender. I noticed that my replies are not fast enough. So I did a test where I unplugged the sender and noticed I was still receiving data! That I found was because the serial port buffer still had data from the sender that I didn't process. Anyhow I'm using Visual Studio 2005, the serial port object. How can I process the data faster. Would something like SerialPort1.ReadExisting or ReadLine work faster?

View 4 Replies


ADVERTISEMENT

How To Save Data More Faster

Sep 23, 2011

I just wondering is there any faster way to save a data into a database. Lets just say i have a datagridview that contains 10,000 records. To save all of it you will use a loop right but it will take a several minutes or maybe a seconds. Same with a datatable right.

View 6 Replies

Way To Write The Data Access Layer Faster?

Oct 1, 2009

One of the time consuming factors of writing the DAL is adding and assigning paramters of teh stored procedure if ther are more than 10 parameters and must link more than 3 tables this process will take a horrible amount of time..

View 10 Replies

VS 2008 Which Method Would Be Faster For Gathering And Storing Data

Nov 16, 2009

I have a simple multithread application that stores updated data from a list of websites. After each thread gathers data, it then store the data into the same text file. I am now thinking of having each thread store the data directly into a arrayList, and after a certain amount of time past, store from the arrayList to the text file. Which situation would enable the application to complete its task faster?

View 1 Replies

Multithreading A Process - Open A Process And Loops Through The Data

Feb 27, 2012

I was wondering if this code could be better optimized for multithreading. What it does is open a process and loops through the data, there could be any range of files to open (so I would like to have say 2 or 3 processes at once):

[Code]...

View 19 Replies

VS 2005 Windows Services - Process Is Listed As A SYSTEM Process Rather Than A Process Under User Name

Jun 4, 2009

I have written a windows service that is meant to launch a notepad when a specific action happens. The problem i have is that even though the service launches notepad, the actual notepad it self is NOT visible. I know that it has been launced because i can see the process in the task manager. By the way the process is listed as a SYSTEM process rather than a process under my user name (i believe that is because my process is a "LocalSystem" one).

View 4 Replies

.net - For Each Loop - Process Some Data For Each 500 Customers?

Aug 25, 2009

How do I use for loop in vb.net something like

dim start as integer
Dim customers as New List(Of Customers)
Customers=dataAcess.GetCustomers()[code].....

I want to process some data for each 500 customers..

View 8 Replies

Asp.net - Process Webclients Data With Xquery?

Nov 16, 2011

I retrieve the html from a cross domain web page using asp.net vb

[code]...

Additionally I want show just a portion of it in a literal control. As an example I want to show just the table with the class "result".How do I process this further in XML and XQuery in VB.NET? How do I declare strRequestedHTML as XML and how do I xquery in it?

View 1 Replies

Find Data On The Process Level?

May 6, 2011

In my last information seeking I found the answer on a systemic level.

[URL]

Now, I need to find data on the process level and it is documented in a far sparser manner than I am used to seeing. I dont know if the answer is in psapi.dll or kernel32.dll is. I don't know what approach to take since there is little information.

View 9 Replies

Handling Data Being Stepped Along A Process?

Apr 23, 2011

I am currently creating a Windows App for a handheld device (WM 6.0, CF 2.0, sqlce 3.5) that pulls data from the server only when connected to a dock (all the significant data is maintained/altered on the handheld til it comes back and is docked for a sync with server).The data is similiar something UPS would do in that it manages pickups and dropoffs of items from a location to a location and records the time these "transactions" occurInitially, the handheld has a couple source tables (pickups and dropoffs) and some validation tables. During a given pickup or dropoff, I am trying to figure out the best way to move the data along this multistep process

View 2 Replies

Pass Data To A Parallel Process?

Nov 12, 2010

I need to pass some data to some procedure called with a parralel.invoke, how can I pass data to the procedure?

I need something like:

Sub ProcessData()
For Each myobject In ListOfObject
Parallel.Invoke(AddressOf LoadOneCPU, myobject )

[Code].....

View 1 Replies

Script To Process Ascii Data

Sep 17, 2009

I found VB to be the easiest and best tool to process ascii data. I have a bunch of them (about 15), each is constructed differently, and I will receive monthly updates. the data is all the US flight navigation systems, like VORs, airports...etc. Some of the files have comments and explanations on top and bottom only, and the rest is heading and data at specific columns. Others are a little trickier, like the data for Jetways, its not continuous data, but it breaks for each jetway to identify it first, then plot the data in rows. What am ultimately trying to do is create a tabular version of some sort of this data to be used in my GIS database. Some of the fields needs to be combined ofcourse, like the latitude and longitude data is given in separate columns, but they need to be combined. I have pasted below a small sample of two different data files. [code]

View 5 Replies

Process .Text Data Before Leaving Control?

Mar 16, 2009

I'm looking for a way to process the text entered into a textbox, before the the focus is lost from the control. Or a way to pass a reference to the control to a function/sub when the control has lost focus. In Access I would be able to use the AfterUpdate event. I have tried the following events, but have not figured out how to get what I want from either of these events:

- TextChanged (tried to capture the Tab key, didn't work)

- Validating (when fired for Text1, the ActiveControl name is Text2 which is the next TextBox control)

View 4 Replies

Receive Data Through A Socket Created In Another Process

Jul 29, 2009

I am trying to implement SMPP protocol in vb. I am sucessfull in send and receiving packets using sockets. Now I would like to decentralize the functions of my program. I want to implement two programs one for sending and another for receiving using a single socket. I want to receive data through the same socket that was created in another process(i.e., the first program).

View 1 Replies

Speading Up Process Of Getting Data From Hard Disk

Dec 12, 2010

Is there a way to optimize the process of reading data from an harddisk to reduce the time required to get the data?

View 1 Replies

VB 2008 - Selecting A Process And Send Data

Jun 9, 2010

[Code]...

I'm doing an application where I open a specific process. And after opening that process I need to send data to him like username and password.

[Code]...

View 1 Replies

Is C# Faster Than .NET

Oct 1, 2010

You'd think both are the same. But maybe it's the compiler that Microsoft has used, but I've noticed that when compiling two very small programs, identical logic. VB.NET uses more IL instructions.Is it true than that c# must be faster, if only because its compiler is smarter.

View 6 Replies

Which One Is Faster, C# Or .net

Feb 15, 2011

Possible Duplicate: Is C# faster than VB.NET? Which one is faster, C# or Vb.net ?

View 2 Replies

Opening A Text File To Process And Order The Data In It?

Jun 10, 2011

i'm having trouble opening a text file to process and order the data in it. When i try to read the first line of characters an error message occurs saying: 'Variable words1 is used before it has been assigned a value.' I dont understand what i am doing wrong when opening the file. Also, I am sorry if this is a rather basic question.

[Code]...

View 2 Replies

Faster Than A Listview?

Mar 11, 2011

A long time a agp I settled into a listview as an indicating device. I do not use pictorial modes or graphics. Just listing and multicolumn listing.I am also a performance bug and I have written realtime monitors for monitoring cpu activity in real-time and normally rum them starting at bootime. Lately I have found that the listview throws away time. In a tight loop, the list view does not take all cpu time available and the listview is relatively slow.

Does anyone know of a control like the list views only it's faster? Multi-colored and multi-columned are musts.

View 5 Replies

Faster Way To Filter?

Jun 22, 2010

I have a simple application, a form with two datepicker( Datepicker1 is for startsearchdate, while datepicker2 is endsearchdate) to filter out any record that not in the range. The source of the record is readed from a rtf file.The record is in format as showm below.[code]...

View 9 Replies

Foreach In Faster Than In C#?

Mar 12, 2009

My co-worker said that in a previous interview, he learned that foreach is faster in VB.Net than c#'s foreach. He was told that this was because both have different CLR implementation.

Coming from a C++ perspective, I'm curious on why this is and I was told that I need to read up on CLR first. Googling foreach and CLR doesn't help me understand.

Does anyone have a good explanation on why foreach is faster in VB.Net than in c#? Or was my co-worker misinformed?

View 5 Replies

How To Get Filename Faster

Mar 29, 2010

I have a directory with more then 350.000 files in. I need to process every single file and move them to an other folder. When I use the dir() method it takes a few seconds before if it returns the first file found.
dim foundfile as string = dir("d:")

In the documentation there is this:
"The My.Computer.FileSystem Object gives you greater productivity and performance in file I/O operations than the Dir function. See My.Computer.FileSystem.GetDirectoryInfo Method for more information."

But I can't find any method that is faster then dir, and gives the same result. I can't use this method below because it takes for ever to load......
For Each foundFile As String In My.Computer.FileSystem.GetFiles("D:")
Next
It just does not work fast...

When I use the Dir() method it takes like 5 sec, and it uses 100% cpu... it is just not a option. How do I get the same function as the dir method but better performance? (I use visual basic 2008).

View 8 Replies

SQLDataReader - The .read Process Returns No Info - Data To Retrieve

Jan 18, 2010

Imports

System.IO

Imports

System.Windows.Forms

Imports

[CODE]...

I don't understand why nothing is being returned from the SQL)

View 3 Replies

Use TaskManager CPU And Mem Usage Data Along With Process Class GetProcesses Method?

Feb 23, 2010

I am iterating processes using the Process class GetProcesses method. I would like to display information formatted similarly to the way the TaskManager displays it. Where to I get the CPU and Mem Usage data that the TaskManager displays?

View 2 Replies

Asp.net - Create CSV File Faster

Apr 13, 2011

I create a CSV file by getting a datatable then looping through that datatable and writing eachline of a CSV file. My data source usually has around 65,000 rows in it. This process takes several minutes to download from the browser. The problem is that locally and on dev it doesn't take too long, but on the client they usually timeout.

Is there a faster way to generate this file?

Function GenerateCSVFile() As String
Dim stuPro As New studentProvider.StudentProvider
Dim emailCenter As New EmailCenter

[Code].....

View 5 Replies

Asp.net - Which Function Is Faster And Efficient?

Jan 5, 2010

I need to verify if a certain user exist on my asp.net site.I want to know if which of these two functions is more efficient, faster and better compared to each other and why.

[Code]...

View 6 Replies

Faster Than Getpixel Setpixel VB?

May 23, 2012

I worked in a role and functioning properly. The problem is that it is a bit slow for use in many images would be very slow. I read online that with stride and scan0 and working in memory with buffer can be made faster, but i donīt understand anything . Does anyone know how it works or how to make my code run faster?

[Code]...

View 12 Replies

Faster Way To Copy Table To SQL?

Apr 2, 2010

I'm converting a process from VB 6.0 to VB .Net. The process copies a table from one database table to another database. In many cases they are not linked so a "Select * into Table2 from Table1" is not a solution. Also the source table may be a temporary global table that has a unique structure. The current process reads the source table into an ADODB recordset, obtains the columns attributes to create a new table, creates the new table, builds insert statements from the source table, and then inserts the rows into the new table. I'd like to take advantage of any .Net features that may be more efficient than that. Can anyone point me in the right Direction?

View 1 Replies

How To Load Images Faster

Jun 22, 2010

I am loading images from the internet. I am using PictureBox1.imageLocation() but it takes a while to load the image. Is there a way i can load the images faster? it shows an error icon before it displays a picture...how can i get rid of that?

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved