mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.0 KiB
27 lines
1.0 KiB
--- !ditz.rubyforge.org,2008-03-06/issue
|
|
title: "api: add the ability to give an initial size for array/object pushed on stack"
|
|
desc: |-
|
|
It would be useful to allow caller to specify initial size for a pushed
|
|
array or object, so that object initialization code can allocate enough
|
|
space to fit any properties the caller is immediately going to init.
|
|
This reduces memory churn for all initialized objects, because currently
|
|
objects always grow from zero size (in reasonable steps, though).
|
|
|
|
This requires a small change to the object resizing algorithm. Perhaps
|
|
an object needs a flag to indicate that it shouldn't be made smaller
|
|
than its current size, until it is grown for the first time (?)
|
|
type: :task
|
|
component: duk
|
|
release:
|
|
reporter: Sami Vaarala <sami.vaarala@iki.fi>
|
|
status: :unstarted
|
|
disposition:
|
|
creation_time: 2014-09-16 20:24:00.566294 Z
|
|
references: []
|
|
|
|
id: bffd98b7e878ad624d512b5a91424521458ef4ae
|
|
log_events:
|
|
- - 2014-09-16 20:24:01.092459 Z
|
|
- Sami Vaarala <sami.vaarala@iki.fi>
|
|
- created
|
|
- ""
|
|
|