After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 523507 - [PATCH] New database backend based on a coalesced hashtable
[PATCH] New database backend based on a coalesced hashtable
Status: RESOLVED FIXED
Product: GEGL
Classification: Other
Component: babl
git master
Other All
: Normal enhancement
: 0.0.22
Assigned To: Default Gegl Component Owner
Depends on:
Blocks:
 
 
Reported: 2008-03-20 06:15 UTC by Martin Nordholts
Modified: 2008-03-22 22:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Jan Heler's patch (16.03 KB, patch)
2008-03-20 06:17 UTC, Martin Nordholts
needs-work Details | Review
Original patch modified as suggested by Sven (23.79 KB, patch)
2008-03-21 23:59 UTC, Jan Heller
committed Details | Review

Description Martin Nordholts 2008-03-20 06:15:19 UTC
This is a tracking issue for Jan Heller's patch on the gegl-developer mailing list that introduces a coalesced hash table as the Babl database backend. The thread can be followed here:

[Gegl-developer] Hi, need any help?
https://lists.xcf.berkeley.edu/lists/gegl-developer/2008-March/000788.html
Comment 1 Martin Nordholts 2008-03-20 06:17:11 UTC
Created attachment 107659 [details] [review]
Jan Heler's patch

Here is the patch, let's integrate into Babl. It needs some changes first though.
Comment 2 Sven Neumann 2008-03-20 08:06:38 UTC
Here are my comments from the mailing-list:

I would prefer if this functionality could be added in new files babl-list.[ch] and babl-hash-table.[ch]. Also the hash-table functions should be prefixed with babl_hash_table_ instead of just babl_hash_ as we should keep the babl_hash prefix for hash functions.

Unless Pippin objects, we should IMO get this code into SVN. If someone could do the suggested changes and attach a new patch here, that would help a lot.
Comment 3 Martin Nordholts 2008-03-20 16:38:55 UTC
Jan I am terriby sorry for misspelling your name, it should be Jan Heller of course
Comment 4 Jan Heller 2008-03-21 23:59:04 UTC
Created attachment 107771 [details] [review]
Original patch modified as suggested by Sven
Comment 5 Sven Neumann 2008-03-22 21:02:37 UTC
The patch applies cleanly and seems to work nicely. Unless Pippin or anyone else objects, I will commit this to SVN trunk.
Comment 6 Sven Neumann 2008-03-22 22:11:16 UTC
2008-03-22  Sven Neumann  <sven@gimp.org>

	Applied patch from Jan Heller that introduces list and hash table
	functionality and changes the babl database to use coalesced
	hashing (bug #523507):

	* babl/Makefile.am
	* babl/babl-list.[ch]
	* babl/babl-hash-table.[ch]: new files providing list and hash
	table functionality.

	* babl/babl-internal.h: include the new header files.

	* babl/babl-db.[ch]: use the new code.

	* babl/babl-fish.c: changed accordingly.

Jan, thanks a lot for your contribution. I assume that you will want to continue to work on this and also port the rest of the babl code to the new list API?! Please send your patches to the mailing-list or open a new bug report and attach them there.