Re: Small optimization tips - gcc-4.1 ruby1.9 -O3
- From: John Carter <john.carter@xxxxxxxxxx>
- Date: Fri, 17 Mar 2006 13:01:47 +0900
On Wed, 15 Mar 2006, Vincent Foley wrote:
That's a few things I found out today. Does anyone else have quick
optimization tips?
Use ruby-1.9 it is faster.
Compile with gcc-4.1
Optimize
CC=gcc-4.1 CFLAGS='-march=pentium4 -O3 -fomit-frame-pointer' CPP=cpp-4.1 \
CXXFLAGS='-march=pentium4 -O3 -fomit-frame-pointer' 'CXX=g++-4.1' \
/configure
make
Warning, this may be hazardous for your health, but it works for me.
ps. Anyone worked out how to use gcc profile feedback to build a faster ruby yet?
John Carter Phone : (64)(3) 358 6639
Tait Electronics Fax : (64)(3) 359 4632
PO Box 1645 Christchurch Email : john.carter@xxxxxxxxxx
New Zealand
Carter's Clarification of Murphy's Law.
"Things only ever go right so that they may go more spectacularly wrong later."
From this principle, all of life and physics may be deduced.
.
- References:
- Small optimization tips
- From: Vincent Foley
- Small optimization tips
- Prev by Date: removing diacritical marks
- Next by Date: Re: Ruby 1.8.4 binaries for Win32 are available here
- Previous by thread: Re: Small optimization tips
- Next by thread: Re: Small optimization tips
- Index(es):
Relevant Pages
|
Loading