File Structure vs Data Structure

  • Thread starter Thread starter aronclark1017
  • Start date Start date
Click For Summary
The discussion centers on the trade-offs between file structure and data structure in programming, emphasizing that reading and writing files can significantly slow down system performance and scalability. Participants highlight that coding approaches vary widely among developers, and the choice between using a data structure or a file directory depends on specific priorities and application needs. Concerns are raised about the potential for external modifications to files, which could impact data integrity. The conversation also touches on the relevance of .NET in managing data structures within applications. Ultimately, the choice of structure should align with performance goals and application requirements.
aronclark1017
Messages
26
Reaction score
4
TL;DR
have been debating for some time now about weither to access data from file or use list across entire application. In some cases it is more convenient to access data from file where only single instance is used. Such as for example creating new object in main form then listing all objects in next form. My first intuition would be to create a new file in the main form then read all the files into a list within the next form. My question if it would be better practice to simply just read the ...
d1.webp
 

Attachments

  • d2.webp
    d2.webp
    8.6 KB · Views: 2
Last edited:
Technology news on Phys.org
Maybe just save the object. Is the structure all because is crook to hide from.
 
There are as many ways to code a procedure as there are coders. The question is what are your priorities?

I can't speak for your circumstance but, generally reading and writing files are some of the slowest operations a system and language can perform. The more file-writing your system does, the slower it will be, and the less scalable it will be.

Even if those are not priorities for this particular application, speed and scalability are still excellent criteria on which to build your coding philosophy.
 
Imagine the diagram as a button form. In .net can tag value to button.
 
Er, what?

I mean, I know how .net works, but what does that have to do with your opening post?
 
Is a good post trust is. To debate about wether to use data structure or just simply file directory. Similar to a grid, the file directory is a data structure in its self one that often time I use without reading into a data structure especially when working with .net forms. However I suspect such could be criticism with argument such as the files could be possibly modified outside the application.
 
aronclark1017 said:
Is a good post trust is.
1764977393885.webp
 
  • Like
Likes DaveC426913
Toyoda...not to mention a data structure using node for file list and directory is slow as hell
images.webp
FB_IMG_1764978778032.webp
 
Last edited:

Similar threads

Replies
86
Views
1K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
6
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
7K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
50
Views
7K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K