[Haskell] ANNOUNCE: fps -- fast packed strings

Bulat Ziganshin bulatz at HotPOP.com
Thu Aug 25 06:40:15 EDT 2005


Hello Donald,

Thursday, August 25, 2005, 8:10:44 AM, you wrote:

DBS> I've cabalised the FastPackedString module from darcs, used in h4sh, as the
DBS> `fps' library.

if you plan to support/improve this library, can you please:

1) add psniceq/pscmp to export list (with better names, smtg like
eqPS/cmpPS)

2) add case-ignoring-versions of these operations (i want to use
packed strings to represent filenames, and under Windows filenames are
case-insensetive, while under Unix is not)


about details of realization - is not it better to use just memcmp to
implement pscmp and also "psniceq a b  =  (pscmp a b) == EQ" ?

may be it is better to open representation for library users? i think
that number of operations which can be added for packed strings by
external libraries is unlimited - GhcBinary support, alternative I/O
schemes


imho, such library must be included in GHC itself - sooner or later.
using 8-times memory representation for ordinary strings is just
disastrous for some projects


-- 
Best regards,
 Bulat                            mailto:bulatz at HotPOP.com





More information about the Haskell mailing list