simonask / snow-deprecated

(ATTENTION WATCHERS: This repository is deprecated. Please watch 'snow' instead.) Snow is a simple, dynamic, and expressive programming language with an emphasis on speed and simplicity. Snow is fully object-oriented, and fully function-oriented at the same time.
http://snow.meta.io/
Other
21 stars 1 forks source link

Bucket allocator for Scope #12

Closed simonask closed 15 years ago

simonask commented 15 years ago

... and other objects that get created and deleted very frequently. A separate bucket allocator would decrease the strain on the GC for each method call, hopefully making full gc's occur less frequently.

simonask commented 15 years ago

I've decided that this is actually a bad idea, since it would only complicate the gc, without adding significant performance benefits.

What can be done instead, is flagging leaf scopes in the Codegen (that is, scopes that don't have any subscopes), since those scopes don't need to allocate their Scope object through the gc.

Closing this.