ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] [GCC] optimizations for constant strings
@ 2007-11-20 12:16 Slava Semushin
  0 siblings, 0 replies; only message in thread
From: Slava Semushin @ 2007-11-20 12:16 UTC (permalink / raw)
  To: ALT Linux Team development discussions

2007/11/20, Alexey Tourbin <at / altlinux.ru>:
[...]
> > Почему бы не заменить strlen(PRIVATE_PREFIX) на sizeof(PRIVATE_PREFIX)-1 ?
[...]
> Кажется gcc умеет оптимизировать strlen для константных строк.

http://www.cygwin.com/ml/gdb-patches/2006-12/msg00287.html

"... we really shouldn't try to obfuscate the code just to make it a bit
faster." (с) Mark Kettenis (AFAIR OpenBSD developer)


Ок. Спасибо за справку, буду знать.

-- 
+ Slava Semushin | slava.semushin @ gmail.com
+ ALT Linux Team | php-coder @ altlinux.ru

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-20 12:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-20 12:16 [devel] [GCC] optimizations for constant strings Slava Semushin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git