Archive for August, 2006

Memory consumption

Friday, August 25th, 2006

Sylpheed-Claws isn’t especially heavy on RAM, but something that can feel strange is that when switching from a big folder to an empty one, the RAM usage doesn’t go down. This is because the GtkCTree widget uses GMemChunks to allocate memory, and this thing doesn’t free it when not needed anymore; rather, the glib reuses them. OK. But I thought it’d be nice to force cleaning of stuff from time to time. From the documentation, I can read:

void g_mem_chunk_clean (GMemChunk *mem_chunk);

Frees any blocks in a GMemChunk which are no longer being used.
Let's try!
...
Hmm, it does nothing visible. Let's see...
From glib/gmem.c:
void        g_mem_chunk_clean       (GMemChunk *mem_chunk)  {}
Notice the empty function body.

Optimizing stuff again

Friday, August 25th, 2006

There was still room for improvement :-)

_() for translation is slow

%f is slow

localtime() is slow – but there I didn’t find any workaround

thousands of fread()/fwrite() is slow, mmap is faster.

Les photos du mariage sont en ligne !

Monday, August 7th, 2006

Ça y est, on a enfin fini le tri de nos photos de mariage… Pas facile ! Elles sont donc en ligne sur notre site… Vous pouvez même mettre des commentaires ;-)

Ma petite soeur Fanny et son copain William nous ont aussi envoyé leur film, (en version française non sous-titrée, of course, donc mes chers lecteurs anglais ne comprendront peut-être pas tout ;-)

Et… merci à tous de vos voeux, félicitations etc ; ça nous fait très plaisir !

Little cat

Wednesday, August 2nd, 2006

Here’s a photo of the little cat we just adopted. His name’s Cowboy, and he can’t stay quiet for more than five minutes straight.

Cowboy

I took the photo with the new Nikon D50 that I just bought, and that makes a refreshing change after the crappy 2MP compact that I had! The most usual cause of crappy photo is now the photographer instead of the gear.

Update: I finally managed to get a good shot of our other cat, Fripouille, which is about two years old. It’s quite hard to get a photo of her with opened eyes, because she fears the flash! This one’s taken at 200mm :

Fripouille

news for few, stuff no-one cares about