English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Correct way of programming a CGI script
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-10-08 (23:24)
From: Arnaud Spiwack <arnaud.spiwack@g...>
Subject: Re: [Caml-list] Correct way of programming a CGI script

> And here is the Felix (C++) version:
>
> int i;
> var x = "";
> s := "a";
> forall i in 1 upto 10_000_000 do
>   x += s;
> done;
> println$ len x;
>
> Time: 0m0.198s

Out of curiosity, does it work as well (meaning as fast) if you write "x 
= s+x" instead ?


Arnaud Spiwack