Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I have a generic table which content needs to be saved at some point to file as I receive shutdown notifications in a driver.

To do it I currently enumerate elements one by one and save them to file. My question is: Is there any way to save it faster without having to iterate through all element and write them individually? The table has a lot of element and I afraid of performance degradation by sticking to this approach.

Any suggestion? Thank you.

What I have tried:

I am already enumerating elements individually and saving them but I am looking for an efficient way of achieving it.
Posted
Updated 24-Mar-16 14:24pm

1 solution

Quote:
To do it I currently enumerate elements one by one and save them to file.
It will be complicated to suggest something else without details on that table.
There is different solutions depending on:
- structure od the table.
- static or dynamic or frequency of updates.
- table size.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900