Re: [eigen] speedup debug mode |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] speedup debug mode
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Wed, 5 Oct 2011 18:06:06 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=5zYkz2fAyFNcJKJ1QQRieRekNimzKfLfmnzMYEQaUTo=; b=fNZBIY5BCGqvSCkrEA/VoMSraphf41bHxDXS2Wd8DH5M0FSQT9ZOCpUqaej+6m/SwW 0BHOf7nQ/ss5hzBDJ7F/m40kUf1zvBf+wmY4F46lijaPr+NxGTD6HZmxGpKEySs0QyI7 mg2U6MIhAWFecFoeWQ4Njac4FeV3TC2mhxdwg=
2011/10/5 Gael Guennebaud <gael.guennebaud@xxxxxxxxx>:
> Asserts are not very costly though you can disable Eigen's one with
> -DEIGEN_NO_DEBUG. The real slow down comes from the lack of inlining
> and basic optimization. Compiling with -O1 -g2 usually gives a good
> tradeoff.
Inlining is very important indeed, and -O1 won't give you that. You
could try -O1 -finline-functions if inlining is acceptable in your use
case.
Benoit