Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 15th, 2005, 10:21 AM   #11
bja888
Hobbyist Programmer
 
bja888's Avatar
 
Join Date: Oct 2005
Location: Central, FL
Posts: 213
Rep Power: 0 bja888 is an unknown quantity at this point
Send a message via AIM to bja888 Send a message via Yahoo to bja888
So.... your saying that I shouldent use xml? If you can come up with a good reason I'll consider the switch.
bja888 is offline   Reply With Quote
Old Oct 15th, 2005, 12:18 PM   #12
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 729
Rep Power: 4 Dameon is on a distinguished road
It is entirely dependent on what you are trying to do...as with everything else.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Oct 17th, 2005, 2:51 PM   #13
printf
Newbie
 
Join Date: Oct 2005
Posts: 4
Rep Power: 0 printf is on a distinguished road
I myself think XML is great for only one reason. It has a standard that allows any OS or scripting language to access it. Other than that it is slow compared to other core functions found in any language I can think of. Example in PHP processing a complex structured XML file over and over again is on average 30X slower than converting that same XML file and storing it in a serialized array and accessing it from there! Other languages also have similar methods that are much faster in access and search time than processing the same XML file repeatedly. Yes XML is a great storage and transport method but in my opinion that is where it's benefits end!

IO streams, disk access can be very fast and safe as long as you allocate your file space, just like your system does, instead of writing line data, use offset to offset, right padding unused space so you can use fseek() to do random reads and writes without ever needing to lock your file. locking the offset is far better than trying to lock the file, which does not work 100% the same way on every system. But lock offset does! Sure it's more work to develop but you make a better over all service not always using core classes or functions that sometimes are not the best way to do what you are doing any ways!

printf
printf is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:34 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC