Commit Graph

13 Commits

Author SHA1 Message Date
Aaron Seigo
fbde93c64f give package a cache for found items; make the dptr implicitly shared
this drops a 100k loop of copies from ~2700ms to ~37ms and a 100k loop
of copy-n-find from ~3900ms to ~40ms.

the cache addition is predicated on the idea that lookups of the same files will be frequent enough to warrant the small amount of extra memory usage for the cache. if that does not hold in practice (though it appears to) then this will not be a gain and in fact be a small net loss for memory footprint

the dptr change is predicated on the assumption that copies of Package will be frequent, and so must be low cost. this is known to be true. even if it wasn't, there is no down-side to this change. the upside are significant time and memory savings.
2011-07-22 17:24:40 +02:00
Aaron Seigo
f3a66f1f79 allow stripping out the name and mimetype data from the package info; only really useful for package introspection (e.g. in plasmate and other such tools) but a waste on mobile 2011-07-21 14:41:01 +02:00
Aaron Seigo
4a3ef536e6 private class changes to match the public class usage 2011-07-19 21:52:33 +02:00
Aaron Seigo
722c77e7ce move the needed datastructures into Package 2011-07-15 13:03:56 +02:00
Aaron Seigo
0633f2fd28 isPublished no longer required 2011-07-13 20:07:33 +02:00
Aaron Seigo
2f1c50c419 remove unpublish 2011-07-13 20:06:09 +02:00
Aaron Seigo
0fa24619d4 remove publish functionality 2011-07-13 20:05:07 +02:00
Aaron Seigo
840ae26b2d use QCryptographicHash instead of QCA 2011-05-27 12:26:59 +02:00
Aaron J. Seigo
4d81dce65e make package copyable and assignable
svn path=/trunk/KDE/kdelibs/; revision=1171413
2010-09-03 19:44:28 +00:00
David Faure
8d4cd6f3b3 missing header protection for enable-final
svn path=/trunk/KDE/kdelibs/; revision=1050278
2009-11-17 01:53:23 +00:00
Aaron J. Seigo
19f55f804b packages can now generate a hash of their contents; inc unit test
svn path=/trunk/KDE/kdelibs/; revision=1026489
2009-09-21 21:37:44 +00:00
Rob Scheepmaker
b809967eb3 APIDOX and code style++, plus policykit integration.
svn path=/trunk/KDE/kdelibs/; revision=1019141
2009-09-02 23:49:46 +00:00
Rob Scheepmaker
9cb9cfe65e Push in remote widgets
svn path=/trunk/KDE/kdelibs/; revision=1018655
2009-09-02 02:27:16 +00:00