Re: [jruby-dev] Analysis of variable scope sizes

2009-04-11 Thread Charles Oliver Nutter
Charles Oliver Nutter wrote: run rails in dev mode, request index, request info: {0=8561, 1=3706, 2=2254, 3=789, 4=323, 5=168, 6=97, 7=51, 8=28, 9=24, 10=7, 11=9, 12=3, 13=6, 14=3, 15=5, 19=1, 20=1, 23=1, 22=1, 25=2, 28=1} It occurred to me after I sent this that this is a crapload of static

Re: [jruby-dev] Analysis of variable scope sizes

2009-04-11 Thread Charles Oliver Nutter
Charles Oliver Nutter wrote: I thought I'd run some numbers to see what size variable scopes appear in typical applications. Currently, for heap-based scoping, we optimize up to 4 local variables in fields, and anything larger we only use an array structure to contain. Here's the breakdown for

[jruby-dev] Analysis of variable scope sizes

2009-04-11 Thread Charles Oliver Nutter
I thought I'd run some numbers to see what size variable scopes appear in typical applications. Currently, for heap-based scoping, we optimize up to 4 local variables in fields, and anything larger we only use an array structure to contain. Here's the breakdown for a few apps/scripts: Version-