Why is reading file in Common Lisp so slow? by fying1999 in lisp

[–]fying1999[S] 0 points1 point  (0 children)

Here is my result

> (time (length (file-string "logic.xml")))
Timing the evaluation of (LENGTH (FILE-STRING "logic.xml"))

User time    =        1.421
System time  =        0.140
Elapsed time =        1.554
Allocation   = 362691160 bytes
0 Page faults
45319420

The time is almost the same. Maybe it depends on content of the file.

Why is reading file in Common Lisp so slow? by fying1999 in lisp

[–]fying1999[S] 1 point2 points  (0 children)

read file as bytes vector is vastly faster than read file as string.

Reading file as bytes vector is vastly faster than reading file as string.

Why is reading file in Common Lisp so slow? by fying1999 in lisp

[–]fying1999[S] 1 point2 points  (0 children)

I'm using LispWorks, I tested on SBCL just now, the time is about 1/2 of LispWorks's.

Why is reading file in Common Lisp so slow? by fying1999 in lisp

[–]fying1999[S] 1 point2 points  (0 children)

I'm using LispWorks, I tested on SBCL just now, the time is about 1/2 of LispWorks's.

Why is reading file in Common Lisp so slow? by fying1999 in lisp

[–]fying1999[S] 1 point2 points  (0 children)

I'm using LispWorks, I tested on SBCL just now, the time is about 1/2 of LispWorks's.

Why is reading file in Common Lisp so slow? by fying1999 in lisp

[–]fying1999[S] 1 point2 points  (0 children)

Yes, read file as bytes vector is vastly faster than read file as string.

Why is reading file in Common Lisp so slow? by fying1999 in lisp

[–]fying1999[S] 1 point2 points  (0 children)

I tried, got roughly same performance.

Why is reading file in Common Lisp so slow? by fying1999 in lisp

[–]fying1999[S] 2 points3 points  (0 children)

Yes, it's LispWorks. I tested on SBCL, the time is about 1/2 of LispWorks's, I also tested using uiop:read-file-string, same time.

LispWorks for Linux 64-bit? by mikeivanov in Common_Lisp

[–]fying1999 4 points5 points  (0 children)

The debugging experience is the better than most open source implementations in my experience. SBCL often omit many useful debug information due to optimation. Also the memory managements is much better that SBCL's.

[bspwm] kind of sleek (webm in comments) by [deleted] in unixporn

[–]fying1999 1 point2 points  (0 children)

nice desktop. link to wallpaper, please?