ctf: Cleanup StructDeclaration
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 25 Jun 2014 22:06:02 +0000 (18:06 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Thu, 26 Jun 2014 21:26:18 +0000 (17:26 -0400)
commit2db699c26cde7481cfcb5c82c44d8b6845d9c831
treede7a841ecc314f7b5a7ea29350e082566f6caee5
parentaefc5c831e345aa08f3e0df935481ffcd23452ce
ctf: Cleanup StructDeclaration

No need to keep separate lists for the fields and values of structs.
A LinkedHashMap preserves the insertion order, and Iterable defines
a specific iteration order.

No apparent performance impact, both versions hover around 975-980 ns/ev
on my machine.

Change-Id: I487b2c756d5827a7489a2ef65e550fb3d018cb72
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/29009
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/types/StructDeclarationTest.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/StructDeclaration.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/StructDefinition.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/CTFStreamInputPacketReader.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/internal/ctf/core/event/metadata/IOStructGen.java
This page took 0.027337 seconds and 5 git commands to generate.