Hello!

On Fri, Aug 28, 1998 at 06:29:44PM +0200, Federico C. Repond wrote:
> Is there any way of optimize the string comparation?
> I mean not to compare char by char.

If you use vanilla strings, you most probably can't avoid that,
as they are (potentially lazy) lists of chars.

However you could use the PackedString module (-syslib misc),
which sometimes can use a (possible faster) C strcmp() routine
for comparing. Note that that is an extension not defined in
the Haskell (library) report.

Regards, Felix.

Reply via email to