xbps/bin/xbps-install
Juan RP 06c9891ae3 xbps_transaction_*: multiple performance improvements (v2).
This commit implements multiple performance improvements
to the transaction code:

- Don't process xbps_pkg_name() N times each time we access
  its package dictionary (via pkgdb or rpool), just do it once
  at xbps_pkgdb_init() time. At pkgdb init time, it just creates
  a property in pkgdb, "pkgname". At rpool time, each time a
  package is accessed, the "pkgname" string property is added.

- The package transaction dictionary contains the "transaction"
  object to know what's the pkg type. This has been changed to an
  uint8, this simplifies the logic and it's faster than checking
  a string object. See xbps_trans_type_t and xbps_transaction_pkg_type().

- Fixed the issue that was marked with XXX in transaction shlibs
  checking code. This has been fixed and improved and resources are
  now just freed as expected.

- Simplified random code all over the place, avoiding unnecessary
  allocations or operations.

- Rename some transaction files to have a better description.

This is my first rototill to the code in 2020.
2020-02-21 09:37:32 +01:00
..
defs.h xbps-{install,remove}: implemented column/wide output mode. 2014-10-30 11:23:10 +01:00
fetch_cb.c xbps-install: show overall download progress 2020-02-19 00:28:40 +01:00
main.c xbps-install: improved -D,--download-only support. 2020-01-25 13:05:46 +01:00
Makefile bin/xbps-install: remove duplicate from Makefile 2019-03-22 19:14:08 +01:00
question.c xbps-install: make question() read the whole input line 2019-06-07 19:38:51 +02:00
state_cb.c xbps_transaction_*: multiple performance improvements (v2). 2020-02-21 09:37:32 +01:00
transaction.c xbps_transaction_*: multiple performance improvements (v2). 2020-02-21 09:37:32 +01:00
util.c xbps_transaction_*: multiple performance improvements (v2). 2020-02-21 09:37:32 +01:00
xbps-install.1 xbps-install: fix --reproducable. 2019-12-29 16:31:23 +01:00