[project @ 2004-08-13 10:55:06 by simonmar]
authorsimonmar <unknown>
Fri, 13 Aug 2004 10:55:06 +0000 (10:55 +0000)
committersimonmar <unknown>
Fri, 13 Aug 2004 10:55:06 +0000 (10:55 +0000)
Add a Todo

Data/PackedString.hs

index 0db102a..58c4981 100644 (file)
@@ -83,6 +83,11 @@ import System.IO
 -- efficient operations.  A 'PackedString' contains full Unicode 'Char's.
 newtype PackedString = PS (UArray Int Char)
 
+-- ToDo: we could support "slices", i.e. include offset and length fields into
+-- the string, so that operations like take/drop could be O(1).  Perhaps making
+-- a slice should be conditional on the ratio of the slice/string size to
+-- limit memory leaks.
+
 instance Eq PackedString where
    (PS x) == (PS y)  =  x == y