Unfortunately, I checked speed again.
With Bitmap fonts, old text composition is now around 60ms instead of 357ms.
Display is around  1380ms.

But with a FreeTypeFont like Open Sans, composition raise to 700ms and
display 3440ms...

There must be som

| text |
text := Compiler evaluate: (FileSystem workingDirectory parent parent
parent / 'text.st' ) readStream contentsOfEntireFile .
MessageTally spyOn: [100 timesRepeat: [Paragraph new
        compose: text
        style: TextStyle default copy
        from: 1
        in: ( 0@0 corner: 569@9999999)]].

    | text canvas m1 |
    canvas := FormCanvas extent:  569@399 depth: 32.
    text := Compiler evaluate: (FileSystem workingDirectory parent parent
parent / 'text.st' ) readStream contentsOfEntireFile .
    m1 := TextMorph new.
    m1 text: text textStyle: TextStyle default.
    m1 wrapFlag: true.
    m1 extent: 569@9999999.
MessageTally spyOn: [ 100 timesRepeat: [
    m1 drawOn: canvas]].


2013/11/3 Stéphane Ducasse <[email protected]>

> I loved this feeling. This is really great.
> I fight everyday to make sure that people can get a chance to make
> business with pharo from
> with our little engineering view on it (you know ruby on rails, JS,
> Python) so this is great to get
> such improvements in the system.
> I will read all the commits eagerly :)
>
> Thanks Tim and Nicolas for your time and thanks nicolas for helping to get
> this improvements in Pharo.
> Stef
>
>
>

Reply via email to