summaryrefslogtreecommitdiff
path: root/module/statprof.scm
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2014-04-14 16:31:02 +0200
committerAndy Wingo <wingo@pobox.com>2014-04-14 16:31:02 +0200
commit3b14dd2f272920854565011d82b41df1237a2213 (patch)
treee336aaa9e7865db533ac003a8193c377b9aa6436 /module/statprof.scm
parent8de051da47e8f0f56a13bde6a4b37ece5f9c81cf (diff)
downloadguile-3b14dd2f272920854565011d82b41df1237a2213.tar.gz
Optimize make-stack
* libguile/continuations.h: * libguile/continuations.c (scm_i_continuation_to_frame): Operate on low-level C structures instead of heap objects. * libguile/frames.h: * libguile/frames.c (frame_offset, frame_stack_base): Const args. (scm_c_frame_closure): New helper. (scm_frame_procedure): Use the new helper. * libguile/stacks.c (stack_depth, narrow_stack, scm_make_stack): Rework to avoid allocating frames as we traverse the stack, and to avoid an n**2 case where there are outer cuts.
Diffstat (limited to 'module/statprof.scm')
0 files changed, 0 insertions, 0 deletions