11:18:54ShinmeraI did some allocation profiling with sprof on my game, and it seems to spend a very large amount of allocations within sb-alien::make-alien-single-float-type. This seems rather strange to me.
11:21:54ShinmeraThe call-with-data-ptr function is here for reference: https://github.com/Shirakumo/trial/blob/master/data-pointer.lisp#L93
12:24:31scymtymlooks like that should mainly create an SB-ALIEN:ALIEN-SINGLE-FLOAT-TYPE instance which has four slots. i think i would just use a local cache, for example an alist in a LOAD-TIME-VALUE cell that caches either types size or fully specialized thunks, depending on how much the code besides the type size computation impacts performance