List Commands Library for 50g
|
03-31-2018, 12:17 AM
(This post was last modified: 03-31-2018 12:18 AM by pier4r.)
Post: #314
|
|||
|
|||
RE: List Commands Library for 50g
Thinking about a comment (in this thread or "processing lists") of John K. He remembered me that doing a STO+ on a list is quite costly if the list is large (as it is in most programming languages is costly to expand an array of values).
Would the cost be lower if instead of a STO+ I go with a PUT (that overwrites the element) ? So I can preallocate a list and then go with replacements. In the case expanding the list to a new fixed size if needed. Thinking about it. Is there a command in ListExt about multiple PUT at once (not insertions, rather replacements or additions if the index is larger than the list size)? Also what about expanding the list adding lists? Like I collect the new elements in small temporary lists, say, 20 elements. And then I add those new elements to the result list. Is the addition of 20 elements at once better than 20 times STO+ ? I would say yes, but to be sure I ask. Wikis are great, Contribute :) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 8 Guest(s)