Re: [Haskell-cafe] List x ByteString x Lazy Bytestring

2011-12-05 Thread Axman
I wonder what profiling tells you, you should identify where your
performance problems actually are before trying to optimise.

Some things that might help are using something like Blaze-Builder[1] to
construct your bytestrings for output. I'm hoping that they're sufficiently
lazy that you can lazily read in the input, and write output as you've made
it available. if you use the blaze-builder-enumerator package, you should
be able to get exactly what you want (but probably requires some minor
knowledge of iteratees).

Anyway, without seeing your code, we can't easily tell you what's wrong.

Cheers,
Alex

[1] http://hackage.haskell.org/package/blaze-builder
[2] http://hackage.haskell.org/package/blaze-builder-enumerator

On 6 December 2011 02:11, Yves Parès limestr...@gmail.com wrote:

 Oh, sorry, my bad.
 I misunderstood the dependency.


 2011/12/5 Johan Tibell johan.tib...@gmail.com

 On Mon, Dec 5, 2011 at 6:09 AM, Yves Parès limestr...@gmail.com wrote:

 However the performance issues seem odd: text is based on bytestring.


 This is not the case. Text is based on ByteArray#, GHC internal type for
 blocks of bytes. The text package depends on the bytestring package because
 it allows you to encode/decode Text-ByteString.

 -- Johan



 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe




-- 
-- Alex Mason
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Headlines on haskell.org

2011-02-15 Thread Axman
Might be nice to say have stories from planet.haskell.org showing there,
which much more accurately shows what's happening in the haskell world than
a list updated by hand every now and then. Or maybe it could e updated with
the contents of the top stories that are in the Haskell Sequence.

On 16 February 2011 00:53, Don Stewart d...@galois.com wrote:

 Just edit, its a wiki :-)

 michael:
  Hi everyone,
 
  I'm not quite sure to whom to address this, but it is with regards to
  the Headlines section at the bottom of haskell.org. It has not been
  updated for 2011 yet, which I can't imagine looks very good to new
  users. Is anyone interested in/able to update it?
 
  If I may be so bold, I would like to offer up Warp as a possible
  headline. Are there any objections to this?
 
  Michael
 
  ___
  Haskell-Cafe mailing list
  Haskell-Cafe@haskell.org
  http://www.haskell.org/mailman/listinfo/haskell-cafe

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe