Paul F Fraser wrote:
Paul F Fraser wrote:
The true type font problem with Prawn and JRuby 1.20 prompted me to
attempt, for the first time, a compile of trunk from github.
Using netbeans 6.7 it was all too easy, a few complaints on compile,
but BUILD SUCCESSFUL out of the box!!
The setup as a ruby platform in netbeans was also seamless.
On my older laptop with vista business, this prawn code took 4.265
secs in JRuby 1.20
and 1.836 secs in 1.30RC2. WHAT HAVE YOU DONE :-) ?
Not sure of the times to be expected in the pdf world, but the
improvement is fantastic.
The true type font problem is also fixed.
Congratulations, it is all happening.
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', 'lib'))
require 'prawn'
Prawn::Document.generate "test.pdf" do
fill_color "0000ff"
text "Hello World", :at => [200,720], :size => 32
pad(20) do
text "JRuby Rocks " * 20
end
end
Thanks
Paul F Fraser
These times include loading of gems. Times when gem loading ignored are
closer, but JRuby 1.20 vary from 1.3 sec to 7 secs and JRuby 1.3.0RC2
are more consistent around 1.3. May be a gc effect.
Ruby 1.9.1-p0 come in around 1 sec.
All very unscientific, but interesting. The gem load times seem to be
much better for 1.3.0RC2.
Well good news either way, especially since we haven't spent a lot of
time explicitly working on performance this release. Feel free to spread
the word :)
- Charlie
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email