Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3701)

Issue 9963043: registry: use binary format instead of XML for cache (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years ago by Daiki Ueno
Modified:
10 years, 11 months ago
Reviewers:
shawn.p.huang, fujiwara, Peng
Base URL:
git@github.com:ibus/ibus.git@master
Visibility:
Public.

Description

registry: use binary format instead of XML for cache Currently the registry cache is in the XML format, that may cause unnecessary parsing overhead on ibus-daemon startup. This patch changes the format to GVariant based binary representation. BUG= R=takao.fujiwara1@gmail.com Committed: 632a5c1

Patch Set 1 #

Total comments: 6

Patch Set 2 : make BusRegistry derive from IBusSerializable, store the format information, don't mark the variant… #

Patch Set 3 : rebased against the git master #

Patch Set 4 : wrap too long lines #

Patch Set 5 : fix typo #

Total comments: 10

Patch Set 6 : treat magic/version as packed integer #

Patch Set 7 : fix memleaks #

Patch Set 8 : print error when g_file_{get,set}_contents() fails #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -74 lines) Patch
M src/ibusregistry.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/ibusregistry.c View 1 2 3 4 5 6 7 12 chunks +188 lines, -71 lines 0 comments Download
M src/ibusshare.c View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M tools/main.vala View 1 2 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 10
Daiki Ueno
Tested on Fedora 19 Beta. The cache size has been considerably reduced: -rw-r--r-- 1 ueno ...
11 years ago (2013-06-03 09:33:41 UTC) #1
Peng
https://codereview.appspot.com/9963043/diff/1/bus/registry.c File bus/registry.c (right): https://codereview.appspot.com/9963043/diff/1/bus/registry.c#newcode42 bus/registry.c:42: IBusObject parent; How about make BusRegistry serializable? I am ...
11 years ago (2013-06-03 14:56:13 UTC) #2
Daiki Ueno
https://codereview.appspot.com/9963043/diff/1/bus/registry.c File bus/registry.c (right): https://codereview.appspot.com/9963043/diff/1/bus/registry.c#newcode42 bus/registry.c:42: IBusObject parent; On 2013/06/03 14:56:13, Peng wrote: > How ...
11 years ago (2013-06-04 03:29:00 UTC) #3
Daiki Ueno
So, I've rebased against the git master, after IBusRegistry addition. Please review it if you ...
10 years, 11 months ago (2013-07-11 07:02:49 UTC) #4
Peng
+ Fujieara-san https://codereview.appspot.com/9963043/diff/16001/src/ibusregistry.c File src/ibusregistry.c (right): https://codereview.appspot.com/9963043/diff/16001/src/ibusregistry.c#newcode31 src/ibusregistry.c:31: #define IBUS_REGISTRY_CACHE_MAGIC "IBUS" Suggest using a 4 ...
10 years, 11 months ago (2013-07-11 16:10:53 UTC) #5
Peng
On 2013/07/11 16:10:53, Peng wrote: > + Fujieara-san > > https://codereview.appspot.com/9963043/diff/16001/src/ibusregistry.c > File src/ibusregistry.c (right): ...
10 years, 11 months ago (2013-07-11 16:11:40 UTC) #6
Daiki Ueno
https://codereview.appspot.com/9963043/diff/16001/src/ibusregistry.c File src/ibusregistry.c (right): https://codereview.appspot.com/9963043/diff/16001/src/ibusregistry.c#newcode31 src/ibusregistry.c:31: #define IBUS_REGISTRY_CACHE_MAGIC "IBUS" On 2013/07/11 16:10:53, Peng wrote: > ...
10 years, 11 months ago (2013-07-12 03:11:33 UTC) #7
fujiwara
lgtm with comments. https://codereview.appspot.com/9963043/diff/16001/src/ibusregistry.c File src/ibusregistry.c (right): https://codereview.appspot.com/9963043/diff/16001/src/ibusregistry.c#newcode321 src/ibusregistry.c:321: if (!g_file_get_contents (filename, &contents, &length, NULL)) ...
10 years, 11 months ago (2013-07-12 06:18:24 UTC) #8
Daiki Ueno
https://codereview.appspot.com/9963043/diff/16001/src/ibusregistry.c File src/ibusregistry.c (right): https://codereview.appspot.com/9963043/diff/16001/src/ibusregistry.c#newcode321 src/ibusregistry.c:321: if (!g_file_get_contents (filename, &contents, &length, NULL)) On 2013/07/12 06:18:25, ...
10 years, 11 months ago (2013-07-12 09:32:14 UTC) #9
Daiki Ueno
10 years, 11 months ago (2013-07-12 09:40:01 UTC) #10
Message was sent while issue was closed.
Committed patchset #8 manually as r632a5c1 (presubmit successful).
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b