dee

Merge lp://qastaging/~kamstrup/dee/optimized-getters into lp://qastaging/dee

Proposed by Mikkel Kamstrup Erlandsen
Status: Merged
Approved by: Michal Hruby
Approved revision: 330
Merged at revision: 326
Proposed branch: lp://qastaging/~kamstrup/dee/optimized-getters
Merge into: lp://qastaging/dee
Diff against target: 392 lines (+278/-12)
2 files modified
dee/dee-sequence-model.c (+201/-9)
tests/test-benchmark.c (+77/-3)
To merge this branch: bzr merge lp://qastaging/~kamstrup/dee/optimized-getters
Reviewer Review Type Date Requested Status
Michal Hruby (community) Approve
Review via email: mp+87239@code.qastaging.launchpad.net

Description of the change

Optimize the getters in DeeSequenceModel by shaving off a g_variant_ref() compared to the default impl in DeeSerializableModel. Benchmarks indicate a ~13% speedup when reading strings.

This branch also adds a benchmark for reading a string column out of a seqmodel.

It is now possible to pass arguments to tests/test-benchmark that specify prefixes that the benchmark names must match in order to be run. Without args all benchmarks are run.

To post a comment you must log in.
Revision history for this message
Michal Hruby (mhr3) wrote :

The code looks clean, and I can confirm ~15% speedup in the benchmark. Rock on!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches