C# Delphi HashTable

  • Thread starter Thread starter Hafiz
  • Start date Start date
H

Hafiz

Hello,

do you have any idea which Hashtable takes more memory ...I mean if we
declare Hashtable in C# and in Delphi which one take more memorey? any
idea ?


regards,
 
Hafiz said:
do you have any idea which Hashtable takes more memory ...I mean if we
declare Hashtable in C# and in Delphi which one take more memorey? any
idea ?

A System.Collections.Hashtable is a System.Collections.Hashtable -
should be the same in Delphi and C#.
 
I need to know based on memory consumption .....if i add 1 thousand
same object to DELPHI hash and same 1 thousand object to C# hash table
.....how much memory both application consume?

Can we say something like that based on above test that C# or Delph is
taking memory memory to store objects in HASH for this ?
 
Why don't you just write 2 small programs, one in C#, one in Delphi,
that have the exact same code (like adding 1000 strings to a
Hashtable), then run them and compare the memory usage? This won't be a
completely scientific test due to various overheads, but if the
programs do nothing else besides using Hashtables (no forms etc.), then
the results should be comparable.
 
Hello,

do you have any idea which Hashtable takes more memory ...I mean if we
declare Hashtable in C# and in Delphi which one take more memorey? any
idea ?


regards,
Code up a small test program in both languages to set up and fill a
hash table. Run each program while checking on memory usage.

rossum
 
Back
Top