Re: Algorythms
- From: "Marko Binic" <marko_binic@xxxxxxxxx>
- Date: Mon, 26 Sep 2005 18:07:31 +0200
> As always you need to carefully benchmark what you're doing before
> deciding that it needs to be more efficient. It's quite possible that
> the algorithm you're using is just as good or better than something
> else out there.
Maybe, but I know there are lots of algorithms for f.ex. searching through
text and stuff. I know how to do lots of things with Delphi, but it seems
it's never good enough for me (either slow or sloppy code, so much Pos() and
PosEx() that I just hate myself when I look at it a week later). So, I was
searching for something time-tested and already used, so I could compare it
to my own routines and maybe combine some things.
BTW Do you happen to know which is the best way (fast, memory efficient) to
store data: dynamic arrays, collections or TStrinList. The data I want to
store is usually numbers or text, not objects.
Also, which is the best method of comparing strings, I know IF-s are slower
than CASE, but I don't know how to use CASE with strings, I suppose
typecasting with cardinal(string) isn't the best way :lol:
Thanks
Marko
.
- Follow-Ups:
- Re: Algorythms
- From: Mike Williams (TeamB)
- Re: Algorythms
- References:
- Algorythms
- From: Marko Binic
- Re: Algorythms
- From: Mike Williams (TeamB)
- Algorythms
- Prev by Date: Affilate scheme
- Next by Date: Re: Affilate scheme
- Previous by thread: Re: Algorythms
- Next by thread: Re: Algorythms
- Index(es):
Relevant Pages
|
|