Note that there are some explanatory texts on larger screens.

plurals
  1. POOptimizing an SBCL Application Program for Speed
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COAs asked, this is really too broad: "There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs." If you have a *particular* piece of code that you're trying to optimize, please show it and describe what's the problem with it. (Although, if the code is already working, it might be a better question for http://codereview.stackexchange.com.)
      singulars
    2. COAs a general note about optimization: regard [Amdahl's Law](https://en.wikipedia.org/wiki/Amdahl's_law). The benefits of optimization depends on how much runtime is taken up by the part of the program that you're optimizing. Yes, there are some global things you could do, most likely, but it's probably a much better use of your time to run your code in a profiler and find out where you're spending most of your time. Then optimize that part, not just with things like type declarations, but algorithmic changes, memory allocation changes, etc.
      singulars
    3. COIm not concerned with algorithmic improvements here. That's another topic. But I see I have to go more into Detail: The Program ist a Chess Program. Most of what such Software does is moving Chess-pieces back and forth. The board is represented as an 1-dim array of 120 CLOS-objects. Looking into the disassembly showed me, that the handling of indices is far from optimal due to lack of type information. I want to know how to improve the code by adding some. Where do i have to place it?
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload