sharplispers / split-sequence

SPLIT-SEQUENCE is a member of the Common Lisp Utilities family of programs, designed by community consensus.

Home Page:http://cliki.net/split-sequence

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optimization: SBCL compiler notes

phoe opened this issue · comments

Due to SPLIT-FROM-START and SPLIT-FROM-END being compiled with `(optimize speed), SBCL prints various compiler notes saying what it cannot optimize on its own. This means that these functions can be typed, which should allow SBCL to optimize them better.

It can be safe to assume that POSITION-FN always returns a fixnum because it must return a position in a sequence, which is an array dimension, and ARRAY-DIMENSION-LIMIT must be a fixnum according to the standard.

I will fix this in the patch I am making to address #9 .

It seems that the only implementation that permits extensible sequences is SBCL. I will use #+sbcl on all code that deals with extensible sequences.

Edit: ABCL too. (Thanks to jackdaniel for this one.)