repo.or.cz
/
cslatevm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog
|
commit
| commitdiff |
tree
|
edit
|
fork
raw
|
patch
(parent:
ae56913
)
TODOs to optimize SortedArray creation.
author
Brian T. Rice
<briantrice@gmail.com>
Fri, 5 Feb 2010 06:14:44 +0000 (22:14 -0800)
committer
Brian T. Rice
<briantrice@gmail.com>
Fri, 5 Feb 2010 06:14:44 +0000 (22:14 -0800)
src/core/sorted.slate
patch
|
blob
|
blame
|
history
diff --git
a/src/core/sorted.slate
b/src/core/sorted.slate
index
a3b19cc
..
4302bd1
100644
(file)
--- a/
src/core/sorted.slate
+++ b/
src/core/sorted.slate
@@
-14,9
+14,11
@@
an order determined by a sorting block, therefore making indexed modification
inappropriate."
c@(Collection traits) sort
+"TODO: this scales up poorly."
[(SortedArray newSizeOf: c) `>> [addAll: c. ]].
c@(Collection traits) sortBy: block
+"TODO: this scales up poorly."
[(SortedArray newSizeOf: c) `>> [sortBlock: block. addAll: c. ]].
sc@(SortedArray traits) sort [sc].