Fast Strings , Fast Memory assignments .....
Posted on 2002-06-17
I involved in a project where the, total work depends on string functions, assigning memory, copying memory,deleting memory and so on.
Actually the project was completed. But when i compared the similar applications which were developed using c++, my application is working dead slow.Even I tested my application in c++ code.(it is working fine there). But client requires the source code of my project. I optimized the code also, by removing unneccessary loops and memory assignments.But still it is working slow,
When i read different articles provided on net. Most of the people are saying that delphi memory assignments and delphi strings are slow when compared to other language string functions and memory assignment functions.
what they are saying is hyper strings and fast strings( i don't know what these are) will work fast when compared to delphi strings.
In this case i want explaination of hyper strings and fast strings. Please provide some source codes, if anybody have. According to one article fast strings are much faster than hyper strings.
similarly delphi memory assignments, and memory copy functions are slow b'coz the assembeled code uses 16 bit instructions instead of 32 bit instructions.
Here also i require some source code. If any body have the above source codes please post me.
If any body have detailed information on this please post ur valuable answers
thanks in advance