Optimizing a function over multiple types for its arguments

Mark Cox markcox80 at gmail.com
Mon Nov 27 20:21:49 UTC 2017


G'day Chaitanya,


On Tue, Nov 28, 2017 at 12:19 AM, Chaitanya Gupta <mail at chaitanyagupta.com>
wrote:

> While I was working on qbase64[1], I stumbled over a peculiar problem:
> I wanted it to work as fast as possible when optimized array types
> (SIMPLE-ARRAY, SIMLPE-BASE-STRING, etc.) were passed to the
> encoding/decoding routines, but I also wanted to support the more
> general types.
>
>

I have written two libraries to try and deal with this problem:

[1] https://github.com/markcox80/template-function
[2] https://github.com/markcox80/specialization-store

There are other related projects as well:

[3] https://github.com/guicho271828/inlined-generic-function
[4] https://github.com/cosmos72/cl-parametric-types

Thanks
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/pro/attachments/20171128/d99e3d6a/attachment.html>


More information about the pro mailing list