[Openmcl-devel] A faster read-line
greg at clozure.com
Tue Oct 19 23:36:47 UTC 2010
On 19 Oct 2010, at 19:27, Ron Garret wrote:
> Without doing anything special, read-line is, empirically, about fifteen times slower than the equivalent C code, even with :external-format :ascii. (My benchmark is comparing (loop while (read-line f nil nil)) with wc.) Lisp also seems to be CPU bound during read-line. What is it doing with all those cycles? Are there any easy ways to speed this up? What's the fastest way to ingest a file in CCL?
I don't know what CCL is doing, but I remember seeing this forever ago: http://www.ymeme.com/slurping-a-file-common-lisp-83.html
More information about the Openmcl-devel