[Vala] How to remove memset from struct constructor?
- From: Nor Jaidi Tuah <norjaidi tuah ubd edu bn>
- To: <vala-list gnome org>
- Subject: [Vala] How to remove memset from struct constructor?
- Date: Wed, 27 Jun 2012 10:28:15 +0800
Dear all,
I notice that vala compiles struct constructor
into a function that starts by calling memset
even when the struct variables are fully initialized
by the body of the constructor. I don't think any
C compiler is clever enough to optimize away
the call to memset. This can add a significant
overhead (speed) for a very lightweight struct.
Is there any option to signal vala not to put
the call to memset?
hand
Nor Jaidi Tuah
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]