R
Roger Pack
Wondering if anybody had suggestions for how to speed up 1.8.6 on an old
mac os x ppc. Thoughts?
Thanks.
-Roger
mac os x ppc. Thoughts?
Thanks.
-Roger
From: "Roger Pack said:Wondering if anybody had suggestions for how to speed up 1.8.6 on an old
mac os x ppc. Thoughts?
Not sure if this applies to OS X or not, but there have been some posts
recently
showing speed gains when one rebuilds 1.8.x configured with
--disable-pthread
Roger said:Wondering if anybody had suggestions for how to speed up 1.8.6 on an old
mac os x ppc. Thoughts?
Thanks! Now if I can just figure out how to check if mine is built with
pthreads enabled...
Not sure if this applies to OS X or not, but there have been some posts recently
showing speed gains when one rebuilds 1.8.x configured with --disable-pthread
(if I recall correctly.)
A) Helpful
B) Trolling
C) Flame-bait
D) Laughable
E) None of the above
Before this goes too far, the answer "Use C" would be considered:
A) Helpful
B) Trolling
C) Flame-bait
D) Laughable
E) None of the above
If you have a Rails app that is taking a long time in Ruby code,
then you obviously have a compute-intensive action. Perhaps you
could find the most expensive part of that action and rewrite it in
C using ruby-inline (http://www.zenspider.com/ZSS/Products/
RubyInline/). If you haven't looked into this, and if you really
need to write some tight C code, then you will kiss the feet of Ryan
Davis for making it all so easy.
tomas said:Thanks! Now if I can just figure out how to check if mine is built with
pthreads enabled...
tpo@petertosh:~$ ldd `which ruby`
[...]
libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7e8e000)
This one has'em.
Ground on which you walk, then, Ryan.
eeewwww ;/
Wondering if anybody had suggestions for how to speed up 1.8.6 on
an old
mac os x ppc. Thoughts?
Thanks.
-Roger
James said:Before this goes too far, the answer "Use C" would be considered:
A) Helpful
B) Trolling
C) Flame-bait
D) Laughable
E) None of the above
James said:Before this goes too far, the answer "Use C" would be considered:
A) Helpful
B) Trolling
C) Flame-bait
D) Laughable
E) None of the above
John said:It's an old trick, I believe the kde folks do it (I may be wrong)
Instead of creating lots and lots of .o's and linking them...
Pull all the .c files into one stonking great .c file and compile
that with...
`-fwhole-program'
Assume that the current compilation unit represents whole program
being compiled. All public functions and variables with the
exception of `main' and those merged by attribute
`externally_visible' become static functions and in a affect gets
more aggressively optimized by interprocedural optimizers. While
this option is equivalent to proper use of `static' keyword for
programs consisting of single file, in combination with option
`--combine' this flag can be used to compile most of smaller scale
C programs since the functions and variables become local for the
whole combined compilation unit, not for the single source file
itself.
Takes forever and needs a huge amount of RAM, but it gives the
optimizer more freedom.
I wonder how hard it would be to tweak the ruby Makefile into doing that?
John Carter Phone : (64)(3) 358 6639
Tait Electronics Fax : (64)(3) 359 4632
PO Box 1645 Christchurch Email : (e-mail address removed)
New Zealand
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.