summaryrefslogtreecommitdiff
path: root/apt-pkg/edsp
Commit message (Collapse)AuthorAgeFilesLines
* drop stored StringItems in favor of in-memory mappingsDavid Kalnischkies2014-09-271-1/+1
| | | | | | | | | | | | | | | Strings like Section names or architectures are needed vary often. Instead of writing them each time we need them, we deploy sharing for these special strings. Until now, this was done with a linked list of strings in which we would search, which was stored in the cache. It turns out we can do this just as well in memory as well with a bunch of std::map's. In memory means here that it isn't available anymore if we have a partly invalid cache, but that isn't much of a problem in practice as the status file is compared to the other files we parse very small and includes mostly duplicates, so the space we would gain by storing is more or less equal to the size of the stored linked list…
* cleanup datatypes mix used in binary cacheDavid Kalnischkies2014-06-181-1/+1
| | | | | | | | We had a wild mixture of (unsigned) int, long and long long here without much sense, so this commit adds a few typedefs to get some sense in the typesystem and ensures that a ID isn't sometimes computed as int, stored as long and compared with a long long… as this could potentially bite us later on as the size of the archive only increases over time.
* follow method attribute suggestions by gccDavid Kalnischkies2014-03-133-6/+6
| | | | | Git-Dch: Ignore Reported-By: gcc -Wsuggest-attribute={pure,const,noreturn}
* cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-136-17/+42
| | | | | | | | Beside being a bit cleaner it hopefully also resolves oddball problems I have with high levels of parallel jobs. Git-Dch: Ignore Reported-By: iwyu (include-what-you-use)
* warning: unused parameter ‘foo’ [-Wunused-parameter]David Kalnischkies2014-03-133-6/+6
| | | | | Reported-By: gcc -Wunused-parameter Git-Dch: Ignore
* do not dereference the storage for the unique strings as the pointer canDavid Kalnischkies2012-06-161-1/+2
| | | | | change at the time of writing the strings, so first store it temporary and then save the index in the (possibily new) pointer location
* * edsp/edspsystem.cc:David Kalnischkies2012-04-231-1/+1
| | | | - check with RealFileExists for scenario file as otherwise a directory like one provided with RootDir triggers the usage of EDSP
* atleast libapt should announce to itself that it is clean…David Kalnischkies2011-12-151-2/+2
| | | | (and be it if it tries to announce that…)
* revert 2184.1.3: forward declaration instead of headersDavid Kalnischkies2011-12-132-0/+10
| | | | | The breakage is just to big for now, so guard the change with #ifndef APT_8_CLEANER_HEADERS and be nice to library users
* * apt-pkg/contrib/fileutl.{h,cc}:David Kalnischkies2011-12-101-5/+2
| | | - implement a ModificationTime method for FileFd
* use forward declaration in headers if possible instead of includesDavid Kalnischkies2011-09-193-4/+3
|
* do not pollute namespace in the headers with using (Closes: #500198)David Kalnischkies2011-09-194-10/+10
|
* reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies2011-09-133-1/+8
|
* add some more dpointer placeholdersMichael Vogt2011-06-082-0/+6
|
* parse correctly the Hold: lines into Pkg->SelectedState = HoldDavid Kalnischkies2011-05-021-2/+5
|
* rename edspwriter to straight edsp in toplevel as it does more thanDavid Kalnischkies2011-03-312-192/+0
| | | | | | just writing stuff… it also reads and can work for both: - APT talking to an external solver - an external solver (understanding EDSP) talking to APT
* add the methods we will need to write to make working with EDSP possibleDavid Kalnischkies2011-03-312-2/+24
|
* strip the Dir::state from the config name as it will never be thereDavid Kalnischkies2011-03-311-4/+4
|
* parse the state of the package from the scenario file correctlyDavid Kalnischkies2011-03-311-30/+8
|
* rename the 'universe' to 'scenario' to reflect the naming in the draftDavid Kalnischkies2011-03-315-11/+11
|
* add a special scenario filename for using stdinDavid Kalnischkies2011-03-312-3/+14
|
* be able to write solutions, tooDavid Kalnischkies2011-03-302-0/+21
|
* add a first round of stuff needed for talking between APT and solversDavid Kalnischkies2011-03-308-0/+550
based on a very early draft for EDSP by Stefano APT can now write a scenario as well as load most stuff from it.