|I currently have a program which queries LDAP (Active Directory) and stores that data into a Multi-dimensional array.
I am trying to find another way to store the data that will allow me to manage easier.
- Runs in System Tray
- Starts at Windows Startup
- Retains Active Directory information in Memory for Quick Lookup
- Only Queries LDAP (AD) at application open
The application is used to quickly retrieve information, send emails, view group memberships.
I have just learned how to use a Dataset and Datatables and tried to store the data into that structure instead of an Array.
There are 18 pieces of data being stored for roughly 400 users so I guess that translates to about 7200 records.
I can store the data into the dataset/datatable, but I'm have a few issues:
Speed - Storing to the Datatable takes 23 seconds, versus 2 seconds for storing to an Array
Processor - While storing to the Datatable the processor is at 15-30%
Memory - Even after flushing the memory using a class I have my application is taking 6MB now instead of roughly 800k-1024k it was before.
My question is this, what is the best way to store the data in memory?
Am I doing anything wrong with the way I'm storing the data to a datatable?
Here is a picture of my application:
The code is in the following post.
modified on Tuesday, May 12, 2009 1:58 PM