473,498 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Least CPU intensive way to constantly search xml files

I need to make a program that stays in the xp/vista system tray. I have to
constantly search xml files to make sure the program stays updated with the
newest xml data. What is the least CPU intensive way to do this? Would it be
Timer or BackgroundWatcher?

Oct 4 '08 #1
4 1394

Well i guess more info is required to answer this question ,

Where does the XML come from is it a feed ? or is it placed on a shared
network drive or or or ...... :-(

i myself am not such a big fan of timers in background processes , i am more
a thread sleep kind of progger or even bether a event driven
kind of progger ;-) .

regards
Michel Posseth [MCP]
http://www.vbdotnetcoder.com


"Andy B" <a_*****@sbcglobal.netschreef in bericht
news:ug**************@TK2MSFTNGP05.phx.gbl...
>I need to make a program that stays in the xp/vista system tray. I have to
constantly search xml files to make sure the program stays updated with the
newest xml data. What is the least CPU intensive way to do this? Would it
be Timer or BackgroundWatcher?

Oct 4 '08 #2
The xml would be coming from the computers local drive. The xml would be
updated by some other source and then the program I am working on would need
to keep realtime updates from the xml files.
"Michel Posseth [MCP]" <MS**@posseth.comwrote in message
news:Of**************@TK2MSFTNGP02.phx.gbl...
>
Well i guess more info is required to answer this question ,

Where does the XML come from is it a feed ? or is it placed on a shared
network drive or or or ...... :-(

i myself am not such a big fan of timers in background processes , i am
more a thread sleep kind of progger or even bether a event driven
kind of progger ;-) .

regards
Michel Posseth [MCP]
http://www.vbdotnetcoder.com


"Andy B" <a_*****@sbcglobal.netschreef in bericht
news:ug**************@TK2MSFTNGP05.phx.gbl...
>>I need to make a program that stays in the xp/vista system tray. I have to
constantly search xml files to make sure the program stays updated with
the newest xml data. What is the least CPU intensive way to do this? Would
it be Timer or BackgroundWatcher?


Oct 4 '08 #3
It seems that if something is changing a local file, then reacting to
filesystemwatcher events would be a resonable approach.

"Andy B" <a_*****@sbcglobal.netwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
The xml would be coming from the computers local drive. The xml would be
updated by some other source and then the program I am working on would
need to keep realtime updates from the xml files.
"Michel Posseth [MCP]" <MS**@posseth.comwrote in message
news:Of**************@TK2MSFTNGP02.phx.gbl...
>>
Well i guess more info is required to answer this question ,

Where does the XML come from is it a feed ? or is it placed on a shared
network drive or or or ...... :-(

i myself am not such a big fan of timers in background processes , i am
more a thread sleep kind of progger or even bether a event driven
kind of progger ;-) .

regards
Michel Posseth [MCP]
http://www.vbdotnetcoder.com


"Andy B" <a_*****@sbcglobal.netschreef in bericht
news:ug**************@TK2MSFTNGP05.phx.gbl...
>>>I need to make a program that stays in the xp/vista system tray. I have
to constantly search xml files to make sure the program stays updated
with the newest xml data. What is the least CPU intensive way to do this?
Would it be Timer or BackgroundWatcher?


Oct 4 '08 #4

Indeed i would also go for the filesystem watcher as you then can make the
program event driven
thus , change in the file , the filesystem watcher will notify you and then
you reread the file

http://msdn.microsoft.com/en-us/libr...emwatcher.aspx

regards
Michel Posseth [MCP]
http://www.vbdotnetcoder.com


"Family Tree Mike" <Fa************@ThisOldHouse.comschreef in bericht
news:%2****************@TK2MSFTNGP04.phx.gbl...
It seems that if something is changing a local file, then reacting to
filesystemwatcher events would be a resonable approach.

"Andy B" <a_*****@sbcglobal.netwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>The xml would be coming from the computers local drive. The xml would be
updated by some other source and then the program I am working on would
need to keep realtime updates from the xml files.
"Michel Posseth [MCP]" <MS**@posseth.comwrote in message
news:Of**************@TK2MSFTNGP02.phx.gbl...
>>>
Well i guess more info is required to answer this question ,

Where does the XML come from is it a feed ? or is it placed on a shared
network drive or or or ...... :-(

i myself am not such a big fan of timers in background processes , i am
more a thread sleep kind of progger or even bether a event driven
kind of progger ;-) .

regards
Michel Posseth [MCP]
http://www.vbdotnetcoder.com


"Andy B" <a_*****@sbcglobal.netschreef in bericht
news:ug**************@TK2MSFTNGP05.phx.gbl...
I need to make a program that stays in the xp/vista system tray. I have
to constantly search xml files to make sure the program stays updated
with the newest xml data. What is the least CPU intensive way to do
this? Would it be Timer or BackgroundWatcher?




Oct 4 '08 #5

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

Similar topics

1
1689
by: RiceGuy | last post by:
Hi! I'm looking for ideas on what would the best approach to design a search system for a RSS feeds. I will have some 50 RSS feeds (all RSS 2.0 compliant) stored locally on the web server. Now I'm...
0
1425
by: Glenn Engelbart | last post by:
I am trying to find out a way to get more code re-use & object orientation in the UI portion of my apps. (There already is plenty of both in the DataAccess & Business Logic portion of my apps. ...
3
9524
by: Chung Leong | last post by:
Here's the rest of the tutorial I started earlier: Aside from text within a document, Indexing Service let you search on meta information stored in the files. For example, MusicArtist and...
5
2681
by: Mark | last post by:
Hi I have an application (in vb.NET 2005) which holds data in SQL Server and some of the SQL records are simply paths to related files. I would like to be able to do a text search on both the...
9
1700
by: Lloyd Sheen | last post by:
For all those who don't think that a recursive search of files in folders is a good thing in the Microsoft.VisualBasic.FileIO.FileSystem namespace listen to this. I am reorg my mp3 collection. ...
1
1963
by: codferrow | last post by:
Hello, I have a small issue with a web-search engine I'm working on. The main table is constantly growing (1 insert per second, currently 150 000 records) and it has full-text indexes on 2 fields...
3
3538
by: =?Utf-8?B?UGVycmlud29sZg==?= | last post by:
Not sure where to post this... Found some interesting behavior in Windows Search (Start =Search =All files and folders =search for "A word or phrase in the file:"). This applies to XP and maybe...
9
1766
by: TomLasky | last post by:
Hi everyone, I'm an old school vb6 user trying to transition to VB.NET. Can anyone suggest a better approach to constantly checking something without using a timer? I'm trying to constantly...
0
10705
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
7126
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,...
0
7005
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7168
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,...
0
7381
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...
0
5465
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,...
0
4595
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3096
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...
0
1424
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 ...
0
293
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.