Click here to Skip to main content
15,914,642 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: how to paint the MainMenu Pin
Pete O'Hanlon12-May-09 22:08
mvePete O'Hanlon12-May-09 22:08 
QuestionHow to get machine certificate and user license. Pin
deadlyabbas12-May-09 21:01
deadlyabbas12-May-09 21:01 
Question.Net Remoting with COM client Pin
lee2312-May-09 19:43
lee2312-May-09 19:43 
Questionproblem with richedit control [modified] Pin
ramaluciano12-May-09 18:52
ramaluciano12-May-09 18:52 
QuestionIRunningObjectTable.Register method Pin
lee2312-May-09 18:23
lee2312-May-09 18:23 
AnswerRe: IRunningObjectTable.Register method Pin
lee2312-May-09 19:06
lee2312-May-09 19:06 
GeneralRe: IRunningObjectTable.Register method Pin
lee2313-May-09 20:25
lee2313-May-09 20:25 
QuestionSeeking advice for storing data in memory [modified] Pin
glumlord12-May-09 7:46
glumlord12-May-09 7:46 
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.

My application:

- 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:

http:\\www.jkfweb.com\files\example.jpg

The code is in the following post.

modified on Tuesday, May 12, 2009 1:58 PM

AnswerRe: Seeking advice for storing data in memory Pin
glumlord12-May-09 7:59
glumlord12-May-09 7:59 
AnswerRe: Seeking advice for storing data in memory Pin
Ian McCaul12-May-09 8:32
Ian McCaul12-May-09 8:32 
GeneralRe: Seeking advice for storing data in memory Pin
glumlord12-May-09 8:37
glumlord12-May-09 8:37 
GeneralRe: Seeking advice for storing data in memory Pin
Ian McCaul12-May-09 8:43
Ian McCaul12-May-09 8:43 
GeneralRe: Seeking advice for storing data in memory Pin
glumlord12-May-09 9:26
glumlord12-May-09 9:26 
GeneralRe: Seeking advice for storing data in memory Pin
jarbo3a12-May-09 20:13
jarbo3a12-May-09 20:13 
GeneralRe: Seeking advice for storing data in memory Pin
glumlord13-May-09 7:35
glumlord13-May-09 7:35 
AnswerRe: Seeking advice for storing data in memory Pin
Dave Kreskowiak12-May-09 8:43
mveDave Kreskowiak12-May-09 8:43 
GeneralRe: Seeking advice for storing data in memory Pin
glumlord12-May-09 9:24
glumlord12-May-09 9:24 
GeneralRe: Seeking advice for storing data in memory Pin
Dave Kreskowiak12-May-09 11:01
mveDave Kreskowiak12-May-09 11:01 
GeneralRe: Seeking advice for storing data in memory Pin
Luc Pattyn12-May-09 9:45
sitebuilderLuc Pattyn12-May-09 9:45 
GeneralRe: Seeking advice for storing data in memory Pin
Dave Kreskowiak12-May-09 10:57
mveDave Kreskowiak12-May-09 10:57 
GeneralRe: Seeking advice for storing data in memory Pin
Luc Pattyn12-May-09 13:54
sitebuilderLuc Pattyn12-May-09 13:54 
GeneralRe: Seeking advice for storing data in memory Pin
Dave Kreskowiak12-May-09 16:12
mveDave Kreskowiak12-May-09 16:12 
GeneralRe: Seeking advice for storing data in memory Pin
glumlord13-May-09 7:30
glumlord13-May-09 7:30 
QuestionUnable to run the code from sp1 in sp2 Pin
SuchiTN12-May-09 4:06
SuchiTN12-May-09 4:06 
AnswerRe: Unable to run the code from sp1 in sp2 Pin
Pete O'Hanlon12-May-09 4:20
mvePete O'Hanlon12-May-09 4:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.