Re: New Control Centre



On Tue, 2007-02-06 at 16:30 +0000, jamie wrote:
> On Tue, 2007-02-06 at 11:07 -0500, JP Rosevear wrote:
> > On Tue, 2007-02-06 at 13:43 +0000, jamie wrote:
> > > On Tue, 2007-02-06 at 08:29 -0500, JP Rosevear wrote:
> > > > On Tue, 2007-02-06 at 10:14 +0000, jamie wrote:
> > > > > On Mon, 2007-02-05 at 21:19 -0600, Federico Mena Quintero wrote:
> > > > > > El mar, 06-02-2007 a las 12:52 +1100, Russell Shaw escribi� > > > > > 
> > > > > > > If profiling has to be done to make a menu faster, it is pretty obvious
> > > > > > > the system it is built on is stupidly inefficient and broken, especially
> > > > > > > if said menu is slow on a 10 year old pc.
> > > > > > 
> > > > > > Ah, bingo.
> > > > > > 
> > > > > > Almost 10 years ago, when GNOME started, we had like three apps we
> > > > > > wanted to put in the menus.  So, reading .desktop files from disk didn't
> > > > > > seem like a bad idea.
> > > > > > 
> > > > > > Now that we have hundreds of .desktop files, it is not a good idea
> > > > > > anymore to have them scattered all around the disk.  You are absolutely
> > > > > > right; the system it is built on is stupidly inefficient and broken!
> > > > > 
> > > > > Yes and its fairly easily fixed with tracker once I add .desktop file
> > > > > indexing to it
> > > > 
> > > > They are already indexed in beagle, so it would be fairly easy to do
> > > > this with libbeagle right now, but you'd still have to mimic all the
> > > > tree building code with the categorizations in gmenu.
> > > 
> > > 
> > > you would not have to do that with tracker - you could just say get me
> > > all apps in category X or app starts with "ev*". 
> > 
> > How do you display categories without knowing the categories?  You have
> > to read the .menu file and you still construct the queries based on the
> > that query language.  Are you really not going to cache that in memory?
> 
> if the indexer has indexed them right and put them in sqlite then
> category list is simply:
> 
> select distinct category from applications

So you propose to take:

		<Menu>
			<Name>VideoPlayer</Name>
			<Directory>suse-multimedia-videoplayer.directory</Directory>
			<Include>
				<Category>Audio</Category>
				<And>
				<Category>AudioVideo</Category>
				<Category>Player</Category>
				<Category>Video</Category>
				<Not><Category>X-SuSE-Jukebox</Category></Not>
				</And>
			</Include>
			<Exclude>
				<Filename>realplay.desktop</Filename>
			</Exclude>
		</Menu>

put VideoPlayer as a category in the applications table?  I suppose that
would work, but when it comes to displaying, you'll have to stick it all
in memory anyhow.

<snip tangential points btree vs hash is too simplistic since lucene has
indexes used for wildcard queries>

-JP
-- 
JP Rosevear <jpr novell com>
Novell, Inc.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]