[Openmcl-devel] A faster read-line

Ron Garret ron at flownet.com
Tue Oct 19 16:27:48 PDT 2010


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?

Thanks,
rg




More information about the Openmcl-devel mailing list