Bug 52971 - insert_events: group data insertion from separate events
Summary: insert_events: group data insertion from separate events
Status: RESOLVED FIXED
Alias: None
Product: Zeitgeist
Classification: Unclassified
Component: Engine (show other bugs)
Version: 0.9.x
Hardware: Other All
: medium normal
Assignee: zeitgeist-bugs@lists.freedesktop.org
QA Contact: zeitgeist-bugs@lists.freedesktop.org
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-30 15:20 UTC by Siegfried-Angel Gevatter Pujals
Modified: 2012-07-31 10:35 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
awesome patch (6.76 KB, patch)
2012-07-30 15:20 UTC, Siegfried-Angel Gevatter Pujals
Details | Splinter Review
forgot to commit a comment (6.82 KB, patch)
2012-07-30 15:28 UTC, Siegfried-Angel Gevatter Pujals
Details | Splinter Review
updated patch (6.89 KB, patch)
2012-07-30 16:20 UTC, Siegfried-Angel Gevatter Pujals
Details | Splinter Review

Description Siegfried-Angel Gevatter Pujals 2012-07-30 15:20:48 UTC
Created attachment 64957 [details] [review]
awesome patch

----------------------- BENCHMARKS ----------------------

ScalabilityBenchmark().run(iterations, events_per_iteration, 5)

ORIG:
	[14.973108053207397, 18.12958812713623, 18.84536910057068, 25.246461153030396, 31.359580039978027, 31.669808864593506, 35.508975982666016, 34.50550079345703, 36.04320788383484, 40.6925151348114]

	[16.465898990631104, 18.16729497909546, 19.667570114135742, 21.99641990661621, 26.685733795166016, 31.001279830932617, 30.661032915115356, 32.82368493080139, 35.43544912338257, 43.649458169937134]

NEW:
	[11.519503831863403, 12.892788887023926, 14.98068904876709, 18.275656938552856, 19.614477157592773, 23.503232955932617, 25.334650993347168, 28.54956817626953, 30.6826810836792, 33.6968879699707],

	[12.970118999481201, 15.820719957351685, 15.587357997894287, 20.564364194869995, 19.535933017730713, 22.579073190689087, 24.29000997543335, 30.67499589920044, 33.05356001853943, 36.06779193878174]
Comment 1 Siegfried-Angel Gevatter Pujals 2012-07-30 15:28:51 UTC
Created attachment 64958 [details] [review]
forgot to commit a comment
Comment 2 Michal Hruby 2012-07-30 16:09:00 UTC
Comment on attachment 64958 [details] [review]
forgot to commit a comment

Review of attachment 64958 [details] [review]:
-----------------------------------------------------------------

Looking fine, just a few comments:

::: src/engine.vala
@@ -79,3 @@
>              for (int i = 0; i < events.length; ++i)
>              {
> -                if (events[i] != null)

Why did the null check disappear?

@@ +149,5 @@
> +        private Database database;
> +        private string type;
> +        private GenericArray<string> data;
> +
> +        public DataInserter (Database db, string data_type)

Can we add a destructor with if (data.length > 0) warning(...)?
Comment 3 Siegfried-Angel Gevatter Pujals 2012-07-30 16:20:15 UTC
Created attachment 64961 [details] [review]
updated patch
Comment 4 Siegfried-Angel Gevatter Pujals 2012-07-31 10:35:19 UTC
(Ack'd on IRC)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.