Sep 20 2005

through the looking glass

Got a bit annoyed with the cursor placement code I'd done earlier so I did a little refinement so it should now keep the window fully on screen. It still places at the cursor, it just might not have the cursor centered in the title bar.

I like this setup a bit better as it keeps my windows from ending up half on one monitor and half on the other, which is a bit annoying.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Sep 16 2005

slimmer then a twinky on a diet.

Categories: Computers, Programming
Tags:

Did a bit of work to EWL in an attempt to make it's memory needs a bit smaller with a good bit of success. The old system used Ecore_Lists to store the lists of callbacks that a widget has attached. Nathan noticed that the list head was in general about the size of 3 list nodes and since it isn't uncommon for these lists to only have 1 or 2 nodes thats a pretty big deal.

So, I sat down and ripped all the Ecore_List bits out of there and set it to use an array (with a bit of magic to not need an array for a single entry). This had a pretty good effect on the memory needs of EWL.

The results from running top with:

Ewl_Test and opening all test windows
With ecore_list
  9121 dsinclai  15   0 71156  17m 4276 S  0.0  1.8   0:11.06 ewl_test
With array
 21727 dsinclai  15   0 68360  15m 4304 S  0.0  1.5   0:09.73 ewl_test

The ewl_filedialog on a directory with 3000 entries
With ecore_list
 25626 dsinclai  16   0  147m  95m 4084 S  0.0  9.5   0:05.42 ewl_test
With array
  6871 dsinclai  25   0  115m  63m 4104 S  0.0  6.4   0:04.62 ewl_test

So, the first test shows a savings of about 2 megs, and the second test with a huge number of widgets shows a savings of about 32megs. Both of which I think are pretty significant.

So, I'm pleased.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Sep 13 2005

Where's that damn window

Well, I finally got sick of trying to figure out how e17 decides to place new windows and added an option to place the window under the cursor. This way the new window will have focus (I use sloppy focus) and since the title bar is under the cursor (the cursor ends up centered in the titlebar) I can move the window right away. I don't have to move the mouse over to the window first. Seems to be working pretty well for me and it should be pretty easy to patch other placement algorithms in now that the config stuff and IPC code is in place.

You can change the focus settings using enlightenment_remote. There are two new options added -window-placement-policy-set and -window-placement-policy-get. The default is SMART which is the current placement and I added CURSOR.

So, give it a whirl and let me know if anything seems to go wrong.

Thanks to Nathan for being my test bunny and pointing out that titlebar centered just looks better for the mouse.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Sep 12 2005

27 and counting….

Categories: Food, Life

Well, today is my 27th birthday. Has been pretty good (other then the fact that I'm at work.) My parents and older brother came over to the city yesterday and we had burgers and cake, tasty stuff. (If you're wondering, burgers were from the Burger Shack, one of the best home burgers I've had.)

Stacy is supposed to be surprising me with something lemon tonight. (I still think she blew up our stove to not have to cook lemon squares, heh.)

Don't have too many plans other then that, treated myself to a nice sushi lunch at Ichiban up the road, tasty tasty stuff.

Thats it for now…

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]