Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] uclibc: enable UCLIBC_HAS_STRING_GENERIC_OPT in all configs
@ 2014-11-12 15:04 Alexey Brodkin
  2014-12-09 23:01 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Alexey Brodkin @ 2014-11-12 15:04 UTC (permalink / raw)
  To: buildroot

Description in uClibc for this optoin is:
--->---
bool "Use faster (but larger) generic string functions"
	default y
	help
	  Answer Y to use the (tweaked) glibc generic string functions.

	  In general, they are faster (but 3-5K larger) than the base
	  uClibc string functions which are optimized solely for size.

	  Many people will answer Y.
--->---

Additional 3-5K of size is not that important if resulting libuClibc.so is
of size about 300k.

But benefits in terms of performance could be pretty significant.

For example on ARC in LMbench we see more than 3 times bump in some tests
--->---
libc bcopy unaligned
...
8.39 - 6.76  (UCLIBC_HAS_STRING_GENERIC_OPT=no)
8.39 - 23.86 (UCLIBC_HAS_STRING_GENERIC_OPT=yes)
--->---

Also since the option in question is default in uClibc I don't expect if
enabled back (it was silently disabled in http://git.buildroot.net/buildroot/commit/?id=cfbf8abc33d86a0cf5c1bb3e0817a22009b7f301 on introduction of NPTL in uClibc
by Khem Raj) it to introduce problems.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Anton Kolesov <anton.kolesov@synopsys.com>
Cc: Peter Korsgaard <peter@korsgaard.com>
Cc: Khem Raj <raj.khem@gmail.com>
---
 package/uclibc/uClibc-0.9.31.config   | 2 +-
 package/uclibc/uClibc-0.9.33.config   | 2 +-
 package/uclibc/uClibc-snapshot.config | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/uclibc/uClibc-0.9.31.config b/package/uclibc/uClibc-0.9.31.config
index 76772e8..83df7d0 100644
--- a/package/uclibc/uClibc-0.9.31.config
+++ b/package/uclibc/uClibc-0.9.31.config
@@ -144,7 +144,7 @@ UCLIBC_HAS_LIBNSL_STUB=y
 #
 # String and Stdio Support
 #
-# UCLIBC_HAS_STRING_GENERIC_OPT is not set
+UCLIBC_HAS_STRING_GENERIC_OPT=y
 UCLIBC_HAS_STRING_ARCH_OPT=y
 UCLIBC_HAS_CTYPE_TABLES=y
 UCLIBC_HAS_CTYPE_SIGNED=y
diff --git a/package/uclibc/uClibc-0.9.33.config b/package/uclibc/uClibc-0.9.33.config
index 1b07d4a..88dc7fa 100644
--- a/package/uclibc/uClibc-0.9.33.config
+++ b/package/uclibc/uClibc-0.9.33.config
@@ -178,7 +178,7 @@ UCLIBC_HAS_LIBNSL_STUB=y
 #
 # String and Stdio Support
 #
-# UCLIBC_HAS_STRING_GENERIC_OPT is not set
+UCLIBC_HAS_STRING_GENERIC_OPT=y
 UCLIBC_HAS_STRING_ARCH_OPT=y
 UCLIBC_HAS_CTYPE_TABLES=y
 UCLIBC_HAS_CTYPE_SIGNED=y
diff --git a/package/uclibc/uClibc-snapshot.config b/package/uclibc/uClibc-snapshot.config
index ffc1535..1f04561 100644
--- a/package/uclibc/uClibc-snapshot.config
+++ b/package/uclibc/uClibc-snapshot.config
@@ -183,7 +183,7 @@ UCLIBC_HAS_LIBNSL_STUB=y
 #
 # String and Stdio Support
 #
-# UCLIBC_HAS_STRING_GENERIC_OPT is not set
+UCLIBC_HAS_STRING_GENERIC_OPT=y
 UCLIBC_HAS_STRING_ARCH_OPT=y
 UCLIBC_HAS_CTYPE_TABLES=y
 UCLIBC_HAS_CTYPE_SIGNED=y
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] uclibc: enable UCLIBC_HAS_STRING_GENERIC_OPT in all configs
  2014-11-12 15:04 [Buildroot] [PATCH] uclibc: enable UCLIBC_HAS_STRING_GENERIC_OPT in all configs Alexey Brodkin
@ 2014-12-09 23:01 ` Thomas Petazzoni
  2014-12-10 11:28   ` Alexey Brodkin
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2014-12-09 23:01 UTC (permalink / raw)
  To: buildroot

Dear Alexey Brodkin,

On Wed, 12 Nov 2014 18:04:44 +0300, Alexey Brodkin wrote:

> Also since the option in question is default in uClibc I don't expect if
> enabled back (it was silently disabled in http://git.buildroot.net/buildroot/commit/?id=cfbf8abc33d86a0cf5c1bb3e0817a22009b7f301 on introduction of NPTL in uClibc
> by Khem Raj) it to introduce problems.
> 
> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Cc: Anton Kolesov <anton.kolesov@synopsys.com>
> Cc: Peter Korsgaard <peter@korsgaard.com>
> Cc: Khem Raj <raj.khem@gmail.com>
> ---
>  package/uclibc/uClibc-0.9.31.config   | 2 +-
>  package/uclibc/uClibc-0.9.33.config   | 2 +-
>  package/uclibc/uClibc-snapshot.config | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)

We discussed this tonight with Peter, and the general opinion is that
since the uClibc developers recommend to have this enabled, it is good
to have it, so I've just applied your patch. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] uclibc: enable UCLIBC_HAS_STRING_GENERIC_OPT in all configs
  2014-12-09 23:01 ` Thomas Petazzoni
@ 2014-12-10 11:28   ` Alexey Brodkin
  0 siblings, 0 replies; 3+ messages in thread
From: Alexey Brodkin @ 2014-12-10 11:28 UTC (permalink / raw)
  To: buildroot

On Wed, 2014-12-10 at 00:01 +0100, Thomas Petazzoni wrote:
> Dear Alexey Brodkin,
>
> We discussed this tonight with Peter, and the general opinion is that
> since the uClibc developers recommend to have this enabled, it is good
> to have it, so I've just applied your patch. Thanks!

Good to know.
Hopefully it will be beneficial for Buildroot users.

And thanks for taking care.

-Alexey

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-12-10 11:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-12 15:04 [Buildroot] [PATCH] uclibc: enable UCLIBC_HAS_STRING_GENERIC_OPT in all configs Alexey Brodkin
2014-12-09 23:01 ` Thomas Petazzoni
2014-12-10 11:28   ` Alexey Brodkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox